Issue
on android only and only in the emulator, if I run my react native app, the app does not launch and get stuck on a white screen. The bundler in the terminal does not receive any connections requests.
It used to work and it works when I run on a device using the same command (react-native run-android)
I'm on react native 0.57.8
Here are the logs I get from react-native log-android:
02-26 17:12:21.527 6544 6544 D ReactNative: ReactInstanceManager.ctor()
02-26 17:12:21.606 6544 6544 D ReactNative: ReactInstanceManager.createReactContextInBackground()
02-26 17:12:21.606 6544 6544 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
02-26 17:12:21.629 6544 6544 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
02-26 17:12:21.629 6544 6544 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()
02-26 17:12:21.629 6544 6544 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
02-26 17:12:21.665 6544 6604 D ReactNative: ReactInstanceManager.createReactContext()
02-26 17:12:21.727 6544 6604 D ReactNative: Initializing React Xplat Bridge.
02-26 17:12:21.729 6544 6604 D ReactNative: Initializing React Xplat Bridge before initializeBridge
02-26 17:12:21.735 6544 6604 D ReactNative: Initializing React Xplat Bridge after initializeBridge
02-26 17:12:21.735 6544 6604 D ReactNative: CatalystInstanceImpl.runJSBundle()
I even tried reverting to older code version via git to version that I know worked, but that still fails, so I think there might be a configuration issue with my machine and the emulator, but I'm unsure what.
Any idea what might be causing this issue?
Solution
The only possibility coming to my mind is the network connectivity :
- make sure your emulator has active network connection.
- I can see your wifi has a small cross what is the reason for that ?
- Also, check if your emulator has any proxy settings or something ?
Answered By - Navneet kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.