In the project directory, you can run:
To download and install all dependencies
Install all dependencies for IOS with pod
Runs the app in the emulator or connected phone on (http://localhost:8081)
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Runs eslint to catch and fix linting errors.
Launches the storybook UI to view component documentation. Follow the URL generated in the terminal if the UI isn't launched automatically.
Reinstalls the app for android
Reinstalls the app for ios
formats the code to prettier configuration
If you get an error pointing to the DatePicker library - react-native-community_datetimepicker, do this:
Go to: CozaGlobalWorkforceApp/node_modules/@react-native-community/datetimepicker/android/src/main/java/com/reactcommunity/rndatetimepicker/Common.java:76:
- Add "final" just before the "@NonNull Context activityContext" to define the Class methods properly.
- Run
yarn android
and it should work this time.
Note: this is a one-way operation. Once you eject
, you can’t go back!