- At the js-core repo root:
yarn && yarn build
- Create an
.env
file at the same level as this README and add your mobile key to that.env
file:
MOBILE_KEY=abcdef12456
-
Replace
my-boolean-flag-1
with your flag key insrc/welcome.tsx
. -
Run the app:
# ios
yarn && yarn ios
# Note: You may need to open the resulting XCode workspace to install the correct target development platform.
# You can use "yarn ios -- --device <device-id or name>" to build for a specific device.
# Note: To use Expo Go instead run "yarn ios-go"
# android
yarn && yarn android
# Note: If you downgrade the React Native or Expo versions used by this example the android build may not work in debug.
- Install the required tools on OS X:
npm install detox-cli --global
brew tap wix/brew
brew install applesimutils
- Detox uses the example app to run tests. The example app needs a mobile key set in an
.env
file at the same level as this README. Ensure this file exists and add your mobile key to that.env
file:
MOBILE_KEY=abcdef12456
-
For the above mobile key, ensure two boolean flags exist
my-boolean-flag-1
andmy-boolean-flag-2
and they evaluate to true fortest-user
. Make sure these flags have client-side SDK availability checked for mobile sdks. -
In the example folder, on a terminal:
yarn test