TypeError:无法读取未定义的属性"measureInWindow" [英] TypeError: Cannot read property 'measureInWindow' of undefined
本文介绍了TypeError:无法读取未定义的属性"measureInWindow"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
环境:
Windows 10
Node js: 10.x
Expo: 35.0.0
React: 16.8
React-native: 0.62.0
React-navigation: 3.0.7
开发用于在android应用上测试导航的简单应用,遇到以下错误:
A simple app developed to test navigation on android app, facing the below error:
"TypeError:无法读取未定义的属性'measureInWindow'"
"TypeError: Cannot read property 'measureInWindow' of undefined"
任何建议将不胜感激. 谢谢
Any suggestion would be appreciated. Thank you,
推荐答案
安装react-native-safe-area-view
以下是用于安装react-native-safe-area-view的命令:
following is the command to install react-native-safe-area-view:
npm我对本机安全区域视图做出反应
npm i react-native-safe-area-view
有关更多信息: https://www.npmjs.com/package/react-native-安全区域视图
这篇关于TypeError:无法读取未定义的属性"measureInWindow"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文