Install for React Native and Expo
- Expo
- React Native
>=0.65 <1, and
@react-native-async-storage/async-storage >=1.0.0.
Add a public client key
Expo can expose the environment’spub_ key:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Install the Superflag React Native SDK for Expo or bare React Native
npx expo install @superflag-sh/react-native @react-native-async-storage/async-storage
npm install @superflag-sh/react-native @react-native-async-storage/async-storage
npx pod-install
>=0.65 <1, and
@react-native-async-storage/async-storage >=1.0.0.
pub_ key:
EXPO_PUBLIC_SUPERFLAG_CLIENT_KEY=pub_...
sdk_, admin_, or
cli_ credential in an app binary or OTA update.import { SuperflagProvider } from "@superflag-sh/react-native"
export default function App() {
return (
<SuperflagProvider
clientKey={process.env.EXPO_PUBLIC_SUPERFLAG_CLIENT_KEY}
targetingKey="install-or-user-id"
>
<Application />
</SuperflagProvider>
)
}