5 of 6 standards met
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 state is still the case after switchin to the new architecture. If not, then mentions of this should be removed. (I also notice that 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 case
Repository: facebook/react-native-website. Description: The React Native website and docs Stars: 2105, Forks: 5869. Primary language: TypeScript. Languages: TypeScript (78.5%), SCSS (12.4%), CSS (3.1%), MDX (2.8%), JavaScript (2.6%). License: MIT. Homepage: https://reactnative.dev Topics: docusaurus, react, react-native. Open PRs: 96, open issues: 12. Last activity: 9h ago. Community health: 87%. Top contributors: Simek, hramos, tesseralis, cpojer, rickhanlonii, cortinico, dependabot[bot], charpeni, huntie, luism3861 and others.
TypeScript
Last 12 weeks · 58 commits
Summary Removes outdated "bridge" reference from documentation Removes mention of being at launch, which is no longer the case with the new architecture Context Fixes https://github.com/facebook/react-native-website/issues/4689 Since React Native 0.76, the new architecture (TurboModules) is the default. is now populated synchronously via during module construction, so it is never when user code accesses it. The old documentation referenced the "bridge" and a transient state that no longer applies. The TypeScript types already declare as non-nullable (), so this change aligns the prose with the types and the runtime behavior. Changes Two sentences updated across 8 files ( + versioned docs for 0.77-0.83): 1. Basic Usage section: Removed _"However, will be null at launch while retrieves it over the bridge."_ 2. Example description: Removed _", and the null state will happen only momentarily"_