68b0ce657e
Summary:
Attempt to fix #7919.
Currently, if the app is launched into the background and you read `AppState.currentState` too soon, you will see the value `'active'` instead of `'background'`. This is because the default value of `AppState.currentState` is hardcoded to be `'active'` and it is initialized with the actual value asynchronously.
This attempts to fix the bug by having the `RCTAppState` module provide the initial state as a module constant.
As noted in #7919, it looks like this fix was already tried and reverted with
|
||
---|---|---|
.. | ||
Base | ||
Executors | ||
Layout | ||
Modules | ||
Profiler | ||
React.xcodeproj | ||
Views |