- React version,
17.0.2
- React-Native version,
0.64.1
-
Install React Native CLI.
-
Install VSCODE.
-
Install Prettier extension,
Prettier
is an opinionated code formatter extension forVSCODE
. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. -
Run
yarn install
ornpm install
. -
(Only if using mac, and need to run on ios)
- Inside the project directory,
cd ios
pod setup
pod install
- Inside the project directory,
-
Run the application:
- To run application on real iOS device, run
yarn/npm run ios-device
orreact-native run-ios --device
. - To run application iOS Simulator iPhone 8 Plus, run
yarn/npm run ios-iphone-8
orreact-native run-ios. --simulator='iPhone 8 Plus'
. - To run application iOS Simulator iPhone 11 Pro Max, run
yarn/npm run ios-iphone-11
orreact-native run-ios --simulator='iPhone 11 Pro Max'
. - To run application iOS Simulator iPad Pro (12.9-inch) (4th generation), run
yarn/npm run ios-ipad-pro
orreact-native run-ios --simulator='iPad Pro (12.9-inch) (4th generation)'
. - To run on Android device run
yarn/npm run android
.
- To run application on real iOS device, run
-
To export Android APK, run
yarn/npm run android-build
after thatcd android && ./gradlew assembleDebug
.