Find your content:

Search form

You are here

Test react native app in android device

 
Share

Do the following steps in terminal

Step1: Set the path variable
export ANDROID_HOME=/Users/<<username>>/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
 
Step2: adb devices
Step3: Get the device id
Step4: Run the command "react-native run-android --deviceId=<<deviceId>>
 
 

My Block Status

My Block Content