React Native Expo Client SDK
Statsig client side SDK for applications in React Native using Expo. If you are not using Expo, check out our plain React Native SDK. This SDK is based on our JavaScript client SDK.
Installation
You can install the SDK via npm or yarn. In your project directory, run:
- NPM
- Yarn
npm install statsig-react-native-expo
yarn add statsig-react-native-expo
Next you can import Statsig in your code and use it away!
import {
StatsigProvider,
useGate,
useExperiment,
useConfig,
Statsig,
} from "statsig-react-native-expo";
Usage
v4.X.X of our react-native-expo SDK wraps the statsig-react sdk. It contains the same React Context, Providers, and Hooks, used in the same way. Get started with our suggested usage or the Provider and Hooks details.
info
Be sure to update the imports from the examples on the react SDK docs to use "statsig-react-native-expo" instead of "statsig-react"