UNPKG

@sekizlipenguen/react-native-app-exit

Version:

A lightweight React Native module to programmatically exit or restart the application. Compatible with React Native 0.60 and above.

17 lines (13 loc) 458 B
import {exitApp as jsExitApp, restartApp as jsRestartApp} from './index'; // TypeScript tip tanımlaması export interface ReactNativeAppExitSpec { exitApp: () => void; restartApp: () => void; } // JavaScript fonksiyonlarını TypeScript'e sarıyoruz export const exitApp: ReactNativeAppExitSpec['exitApp'] = jsExitApp; export const restartApp: ReactNativeAppExitSpec['restartApp'] = jsRestartApp; export default { exitApp, restartApp, };