diff --git a/packages/sdk/react-native/README.md b/packages/sdk/react-native/README.md index 6f9588528..67a208ce0 100644 --- a/packages/sdk/react-native/README.md +++ b/packages/sdk/react-native/README.md @@ -73,10 +73,25 @@ See the full [example app](https://github.com/launchdarkly/js-core/tree/main/pac ## Developing this SDK +1. Build all the code in the `js-core` repo: + ```shell # at js-core repo root -yarn && yarn build && cd packages/sdk/react-native/example +yarn && yarn build +``` + +2. The example app uses [react-native-dotenv](https://github.com/goatandsheep/react-native-dotenv) + to manage environment variables. Under `packages/sdk/react-native/example` + create an `.env` file and add your mobile key: + +```shell +echo "MOBILE_KEY=mob-abc" >> packages/sdk/react-native/example/.env +``` +3. Run the example app. This will link the local react-native sdk code to the + example app for development: + +```shell # in react-native/example yarn && yarn ios-go ``` diff --git a/packages/sdk/react-native/example/README.md b/packages/sdk/react-native/example/README.md index 2307d41b9..8cc13d9f9 100644 --- a/packages/sdk/react-native/example/README.md +++ b/packages/sdk/react-native/example/README.md @@ -20,11 +20,11 @@ MOBILE_KEY=abcdef12456 ```shell # Note for android, there's an issue with Flipper interfering with streaming connections -# so please run the release build. There's no such issue with ios. - -# android -yarn && yarn android-release +# so please run the release build. There's no such issues with ios. # ios yarn && yarn ios-go + +# android +yarn && yarn android-release ```