-
Run the following command :
npx react-native init <project_name> -
Add any baisc header, button or input text box in App.js
-
To run your app in iOS/ Android emulator, Run command :
npm run ios/npm run android
npm install -D detoxnpm install -D jest
npx detox init -r jest
This would have added detoxrc.json file and e2e folder.
- For Detox iOS configuration , refer Setup for iOS
- For Detox Android configuration , refer Setup for Android
- To start metro server, Run command:
npm run start
- To build and run tests in android emulator:
npm run build-androidnpm run run-android
- To build and run tests in iOS simulator:
npm run build-iosnpm run run-ios