Recently I started working with React Native and got a blank white screen after installing the example app.
I generated a basic app using
react-native init testapp first and installed it on my android device using
react-native run-android. When I opened the app, Its a blank screen. I’m sharing the reason for blank screen and solution for it.
Usually, we get a blank screen when the app is not connected to React Native development server. Make sure that you have started the development server in another terminal using
npm start in project root folder.
If dev server is running then make sure to set the IP address of your PC in dev settings. Open dev settings by shaking the phone or press and hold menu button. Get your IP address using the command
ipconfig in your terminal.
Unable to react native open developer menu on android
In few android mobiles, developer menu doesn’t open by shaking the phone or long press menu button. This is because of a permission being disabled. I’m using Redmi Note which has a default permission manager which disables
Display popup window permission by default. Just enable it in the app settings and it should work!
Hope this helps others who are facing the same problem.