Skip to main content

Use flags in React Native and Expo

Read typed values

Missing identity or configuration returns the explicit fallback. Unidentified devices are not silently grouped into one shared rollout bucket.

Observe lifecycle state

Status is idle | loading | ready | refreshing | error | rate-limited and source is none | cache | network. none does not mean that remote configuration is ready. The guarded default AppState integration refreshes when the app returns to the foreground. Reconnect refresh is opt-in through an injected network adapter, so the package does not require NetInfo.

Change targeting context

Changing identity invalidates prior exposure correlation and evaluates the new subject independently.

Opt in to hosted telemetry

The AsyncStorage-backed telemetry queue is persistent, bounded, and restored defensively. Background, foreground, and injected reconnect events can flush opportunistically without blocking flag evaluation.

Use the imperative client outside React

Call destroy() when the owning lifecycle ends. Most React applications should prefer the provider and hooks.