React Native App is displaying a blank white screen when connected with a device

Viewed 6905

I'm using react native to build an android app, but i am having an issue. The issue is whenever i connect the app to my android device (via USB) or emulator, the app display a white blank screen. But if i open the app offline (if not connected to the react native development server), the app display the contents in the app ('app.js' code). I'm beginner in react native app development (this is my first time). I don't know why the app is behaving like that. Any help will be highly appreciated

3 Answers

If the white screen comes up after the app is built, close the app from the phone. Then open it again.

Make sure it says "Running" in "Metro".

I've solved this issue by running react-native start in one terminal and then react-native run-android in different terminal.

Uninstall the previous APK. Restart your metro bundler and run again

Related