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
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
For other tooltip actions we don't need to manually set this style. Can we use the mechanism we already have, or are there any reasons for not doing so?