- Splash
- Login
- Home
- Profile
- Clone this repo,
git clone https://github.com/Thanhal-P-A/React-Native-Boilerplate-Architecture.git
- Go to project's root directory, run
cd React-Native-Boilerplate-Architecture
- Remove
.git
folder, runrm -rf .git
- Run
yarn
ornpm install
to install dependencies - After installing dependencies run
npx react-native start
to start the packager - Connect a mobile device to your development machine or open an emulator
- Run the application :
- On Android:
- Open another terminal and run
npx react-native run-android
- Open another terminal and run
- On iOS:
- Open
ios/YourReactProject.xcodeproj
in Xcode - Hit
Run
after selecting the desired device
- Open
- If build failed in android :
- Open
android/app
in android studio and wait for indexing and synching the project. Then runnpx react-native run-android
or hitRun
button after selecting device or emulator from android studio - If connection error occur, try running command
adb reverse tcp:8081 tcp:8081
to reverse proxy then retry.
- Open
- There You Go !!!!