React-native may encounter white screen situation when anroid is running

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.