Step 1 : install react native CLI from Official Page Setting up the development environment
https://reactnative.dev/docs/environment-setup
Step 2. Clone the project repository from github:
Git Clone:
git clone https://github.com/kingkongqn4444/ReactNativeGiGa
cd gagacover_test
Step 2. install package manager.
Yarn :
brew install yarn
Step 3. install package.
Yarn :
yarn install
Npm :
npm install
Step 3. Start project with 2 command
yarn start
Step 4. Start propject Android or Ios on simulator
Android:
react-native run-android
Ios:
react-native run-ios
-
Install RN Debuger from
https://github.com/jhen0409/react-native-debugger
-
Run app on simulator or device
-
Run app React Native Debuger
-
Open context debugger on devices and choose Debug menu
-
Debug app.
Check out the *.spec.js files in the project for tests. and run yarn test
yarn test
If you have Android Studio, simply open the project, wait for the gradle synchronization and then build/install the app. It will download the project native library from our Maven repository as an AAR file so you don't have to build anything yourself.
If you don't have Android Studio, you can build and install the app using gradle:
./gradlew assembleDebug
will compile the APK file (assembleRelease to instead if you want to build a release package), and then
./gradlew installDebug
to install the generated APK in the previous step (use installRelease instead if you built a release package).
APK files are stored within ./app/build/outputs/apk/debug/
and ./app/build/outputs/apk/release/
directories.