This is an example for Automation Testing in React Native using Appium.
React Native Version : 0.62
Appium Version : 1.17.1
- clone this repo
- make sure you already have an appium dekstop app or you can install it from this link appium
- npm install
- npm install appium-doctor -g
- open your emulator
- change your emulator name in Test File
- react-native start
- react-native run-android, you need to run this command to generate your Debug APK
- make sure the app-debug.apk has been generated in Debug APK
- open Test File and change your debug apk path, it should be in your_project_path/android/app/build/outputs/apk/debug/app-debug.apk
- make sure you add this export JAVA_HOME=$(/usr/libexec/java_home) in your ~/.bashrc or ~/.bash_profile
- open your appium and click start server
- npm test
- wd (Web Driver)
(https://www.npmjs.com/package/wd) - react navigation
(https://reactnavigation.org/docs/getting-started)