import {NativeModules} from 'react-native'; interface INativeUtils { exitApp: () => void; // getRealPath: (filePath: string) => Promise; } const NativeUtils = NativeModules.NativeUtils; export default NativeUtils as INativeUtils;