React Native skeleton repository
- Note: Make sure to install jq package in linux(sudo apt install jq)/mac(brew install jq)
- Run ./start.sh
- Enter Your project name and wait for the command to exit.
Requires:
- Node
- React Native Environment Setup here
Environment Files required for the project can be found here
-
Copy
config.ts
file fromconfig.ts.example
toenvironments/<dev|local|prod>
.- NOTE
apiUrl
needs ip address of server if running from live device.
- NOTE
-
For firebase configuration
- IOS/Android
- Copy GoogleService-Info.plist & google-services.json inside
environmets/<dev|local|prod>
- Copy GoogleService-Info.plist & google-services.json inside
- IOS/Android
-
Finally, run
yarn set:env:<dev|local|prod>
to set up the required environmental configuration.
react-native start
will start development server.react-native run-android
will run the project in mobile for android.
-
if pod install is not done. you need to go to
ios
directory and run commandpod install
ornpx pod install
. For m1 macs (running with rosetta emulation)sudo arch -x86_64 gem install ffi
andarch -x86_64 pod install
-
react-native run-ios
will run project in simulator in ios.