Why is the app open when running the React-native app on a real machine white screen?
Test environment: MIUI7
Installation application: MyProject
First, open the Phone Settings app and click to enter the Settings screen.
Next, in the Settings app, select the "Other app management" option.
Next, open the app that you chose to install, and select "MyProject".
Next, click on "Rights Management" to access the Rights management interface.
Finally, click on the "Show suspended Windows" permission to set this permission to allow.
Finally reopen the MyProject app
If WiFi and device is the same network, now need to change the IP address, the computer through the cmd ipconfig command to find the computer's IP address.
Open the app on a straight machine (MyProject) shake your phone and the box will pop up
Click the dev Settings option to open the Settings window, such as:
Click the Debug server host & port for device option, enter the IP address plus port number on your computer, default is 8081, open as:
After the point is OK, close the window and reopen the app (Myproject), which is a simple layout that I wrote after my first successful configuration, with the effects such as:
The article finishes, hoped to have the help to you, thanks everybody!
React-native may encounter white screen situation when anroid is running