diogocarmo
diogocarmo

Reputation: 970

Error screen with white background

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.

React Native Exception Screen

Upvotes: 5

Views: 900

Answers (3)

yogevbd
yogevbd

Reputation: 1628

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.

Upvotes: 1

Forres
Forres

Reputation: 2155

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.

Upvotes: 3

mithunm93
mithunm93

Reputation: 571

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.

Upvotes: 1

Related Questions