Skip to content

"App state" documentation still mentions a "bridge" #4689

@dr-thca

Description

@dr-thca

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions