[英]Expo Go App just crashes when testing app on Android
I'm developing React Native app and trying to test my app on Android in Expo Go. In my app there are 2 screens A and B. When loading screen A it's ok but when I try to navigate to screen B by pressing button, the Expo Go just crashes and I even have no possibility to view logs and even see the next screen.我正在开发 React Native 应用程序并尝试在 Expo Go 中的 Android 上测试我的应用程序。在我的应用程序中有 2 个屏幕 A 和 B。加载屏幕 A 时没问题,但是当我尝试通过按下按钮导航到屏幕 B 时, Expo Go 只是崩溃,我什至无法查看日志,甚至无法看到下一个屏幕。 On iOS it's fine but on every Android device it's impossible to view error log for me.
在 iOS 上没问题,但在每台 Android 设备上,我无法查看错误日志。 How can I see error log, stacktace and so on when Expo Go crashes on Android?
Expo Go crash on Android 如何查看错误日志,stacktace 等? Thanks.
谢谢。
Long story short, Android is super strict on bad style values.长话短说,Android 对不良风格值非常严格。
For me, I had a style like...对我来说,我的风格是……
const style = StyleSheet.create({
textItem: {
fontSize: 15,
lineHeight: '0em', // This was the issue, I guess its not a valid value. I changed it to 0 and it worked.
}
});
I also had a few other issues where I was doing something like...我还有其他一些问题,我正在做类似的事情......
justifyContent: 'start' // not a correct value. Changed to 'flex-start'
iOS would load fine but android would quit immediately. iOS 会加载正常,但 android 会立即退出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.