-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
App state
Under https://reactnative.dev/docs/next/appstate you can read this:
To see the current state, you can check AppState.currentState, which will be kept up-to-date. However, currentState will be null at launch while AppState retrieves it over the bridge.
and this:
This example will only ever appear to say "Current state is: active" because the app is only visible to the user when in the active state, and the null state will happen only momentarily.
Mentions of the "bridge" should be removed. I'm also wondering if this null state is still the case after switchin to the new architecture. If not, then mentions of this should be removed.
(I also notice that currentState is not typed null, but I'm guessing its been like that forever)
Why is it important?
The users no longer have to handle a null case