import { NativeModules } from 'react-native' ; interface RNIContextMenuViewModule { dismissMenu ( node ) : Promise < void > ; } ; const MODULE_NAME = "RNIContextMenuViewModule" ; export const RNIContextMenuViewModule = NativeModules [ MODULE_NAME ] ;