React Native 白屏问题 [英] React Native white blank screen issue

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

问题描述

在 android 情况下,在物理设备上运行应用程序时总是出现白色空白屏幕.使用 react-native-navigation 无法检测到错误,请帮忙!

Always getting white blank screen when running the app on the physical device in android case. Using react-native-navigation can't able to detect the bug please help!

我创建了一个全新的 react-native 项目并将 react-native-navigation 库集成到其中,当我在物理设备上运行应用程序时,运行命令 yarn run android 它运行但在 android 中显示空白屏幕.一旦它成功运行,但现在它不会.

I have created a fresh react-native project and integrated the react-native-navigation library into it and when I am running the app in my physical device by running the command yarn run android it runs but shows blank white screen in android. Once it runs successfully but now it won't.

推荐答案

使用react-native init"命令创建项目,因为它只为你构建 react-native 而不是 expo 和其他节点模块,然后为你构建特定平台,例如.在我的例子中是react-native run-android",它可以工作.

Use "react-native init" command for the creating the project as it only build react-native not expo and the other node modules for you and then build for the particular platforms for eg. in my case "react-native run-android" and it works.

这篇关于React Native 白屏问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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