Running React Native projects presented on github on Android devices

Background:

I followed this guide and successfully ran it on my device, and now I am trying to run other responsive native projects present on github, but so far they have not been successful.

Formulation of the problem:

I want to run this project on my Android device.

There are clear instructions for running this on an emulator, but I cannot figure out how to run this on an Android device.

Edit:

I already followed the instructions and successfully launched the sample application. Now, to start the project in the emulator, you must perform the following steps:

. cd react-native
./gradlew :Examples:Movies:android:app:installDebug
./packager/packager.sh

Now I am looking for steps to run this example directly on the device.

+4
3

. , USB, , React , adb reverse:

adb reverse tcp: 8081 tcp: 8081

, , , - WiFi. .

+1

: https://facebook.imtqy.com/react-native/docs/running-on-device-android.html

Android, response-native:

  • , Wi-Fi.
  • React Native . , .
  • . . .
  • "", 82 .
  • Dev.
  • .
  • IP- - (, 10.0.1.1:8081). Mac IP- System Preferences/Network. Windows ipconfig, IP- ().
  • "" " JS".
+1
  • .
  • , adb-.
  • rerun ./gradlew :Examples:Movies:android:app:installDebug

Then follow the instructions of kamikazeOvrld .

+1
source

Source: https://habr.com/ru/post/1626969/


All Articles