UNPKG

react-native-applifecycle

Version:

⚛ Enhances the reliability of managing app lifecycles across iOS and Android platforms, ensuring consistent behavior regarding foreground and background states.

15 lines (12 loc) 285 B
const {AppState} = require('react-native'); const AppLifecycle = { addEventListener: AppState.addEventListener, get currentState() { return AppState.currentState; }, isAvailable: AppState.isAvailable, }; module.exports = { __esModule: true, default: AppLifecycle, };