UNPKG

react-native-instant-restart

Version:

A lightweight and reliable React Native library to restart your application on both iOS and Android platforms

20 lines (19 loc) 431 B
/** * Restarts the application * * On iOS: Triggers a JS bundle reload * On Android: Completely restarts the whole app by relaunching the main activity * * @example * ```typescript * import AppRestart from 'react-native-instant-restart'; * * // Restart the app * AppRestart.restart(); * ``` */ export declare function restart(): void; declare const _default: { restart: typeof restart; }; export default _default;