We've built a simple application that demonstrates how LaunchDarkly's SDK works. Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page.
- Open the
hello-react-native-typescript
directory - Copy the mobile key from your account settings page from your LaunchDarkly dashboard into
App.tsx
. - Run
npm install
inhello-react-native-typescript
. This should download and create the directories for the project. - Run
pod install
inhello-react-native-typescript/ios/
. This should download dependencies for iOS. - Run
npm start
to start the server to deliver the bundle url. Make sure this is running before you start your application. - Run
npx react-native run-ios
ornpx react-native run-android
to start your application. Note: that you might need to start the Android emulator separately viaemulator -avd MY_AVD
.