- Install
node
&npm
:brew install node
- Install
watchman
:brew install watchman
- Install dependencies:
npm install
- (Optional, but recommended) Start ngrok (
Expensidev/script/ngrok.sh
), replace value inNetwork.js
with your ngrok value
- To run a Development Server:
npm run web
- To build a production build:
npm run build
- Changes applied to Javascript will be applied automatically
- To run a on a Development Simulator:
npm run ios
- Changes applied to Javascript will be applied automatically, any changes to native code will require a recompile
- In order
- Running via
ngrok
is required, see step 3 in Getting Started - To run a on a Development Emulator:
npm run android
- Changes applied to Javascript will be applied automatically, any changes to native code will require a recompile
- To run the Jest Unit Tests:
npm run test
- If you are having issues with Getting Started, please reference React Native's Documentation
- If you are running into issues communicating with
expensify.com.dev
(CORS, SSL, etc.), running viangrok
is recommended, see step 3 in Getting Started
- If running on the iOS simulator
⌘D
, or⌘M
on Android emulator will open the debugging menu. - This will allow you to attach a debugger in your IDE, React Developer Tools, or your browser.
- For more information on how to attach a debugger, see React Native Debugging Documentation