Running React Native Android on the device

I followed this official help page and also reviewed this previous SO question .

But I still don’t know what is wrong here.

enter image description here

Step by step:

  • Verify that the package server is running. In the screenshot, you can see the command that I typed "response-native run-android" and the answer "Run JS server ..."

  • Make sure your device is connected ... Yes, Vysor sees my device. We see that Vysor shows the application running on the screenshot.

  • ... USB is on. Yes, the application works, so we see a red error screen, but still the application works.

  • "adb reverse tcp: 8081 tcp: 8081" , , .

  • ... , .

enter image description here

? ?

+4
3
  • npm run start , .
  • react-native run-android.

, .

:

  • , , $ adb devices .
  • , adb reverse tcp:8081 tcp:8081 Android 5.0 .
+8

React Packager - "npm start" , "run-native run-android".

Visual Studio React Native, , /, - , "Reload" .

+3

, , , , , . , .

+1
source

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


All Articles