白色背景的错误屏幕 [英] Error screen with white background

查看:64
本文介绍了白色背景的错误屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在 iOS 上使用 React Native 遇到异常时,我得到这个白色背景的错误屏幕.您可以通过点击的单元格看到它实际上具有异常堆栈,只有白色背景.不知道为什么会发生,但有办法解决吗?在 Android 上,屏幕具有红色背景(因此按预期工作.)

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.)

运行 React Native 0.48.3.

Running React Native 0.48.3.

推荐答案

找出原因(至少在我的情况下)

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

我的团队以 .storyboard 文件的形式实现了一个新的启动屏幕,这导致了白屏.如果您更改 .xib 文件的启动屏幕,它应该可以工作.

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.

这篇关于白色背景的错误屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆