Error screen with white background

笑着哭i 提交于 2019-12-06 03:49:38

问题


When getting an exception with React Native on iOS, I get this error screen with white background. You can see by the tapped cell that it actually has the exception stack, only with a white background. Not sure why's happening, but is there a way to fix? On Android the screen has red background (hence working as expected.)

Running React Native 0.48.3.


回答1:


Found out why it was happening (At least in my case)

My team implemented a new launch screen as a .storyboard file, and that was causing the white screen. If you change that launch screen for a .xib file it should work.




回答2:


I can't figure out how to solve this issue, but a work around that I found is to enable Debug > Color Blended Layers for the Simulator. This gives some contrast to the screen, allowing you to make out the text. This problem happens to me on the iPhone X simulator, I haven't tested the other devices.




回答3:


The problem was that react-native-navigation failed to load the Storyboard file caused the window to be loaded with empty rootViewController. It is now fixed in react-native-navigation latest version.



来源:https://stackoverflow.com/questions/46206139/error-screen-with-white-background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!