Details
Details
I patched the following into native/root.react.js:
import * as AndroidLifecycleModule from './lifecycle/lifecycle-module'; if (Platform.OS === 'android') { console.log(`androidLifecycle.ACTIVE: ${AndroidLifecycleModule.ACTIVE ?? 'null or undefined'}`); console.log(`androidLifecycle.initialStatus: ${AndroidLifecycleModule.initialStatus ?? 'null or undefined'}`); addLifecycleListener(status => { console.log(`onChange ${status ?? 'null or undefined'}`) }); }
It resulted in the following output after I started, then backgrounded, and then foregrounded the app:
LOG androidLifecycle.ACTIVE: active LOG androidLifecycle.initialStatus: active LOG onChange background LOG onChange active
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable