TypeError:无法读取未定义的属性“measureInWindow" [英] TypeError: Cannot read property 'measureInWindow' of undefined

查看:29
本文介绍了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 i react-native-safe-area-view

npm i react-native-safe-area-view

更多信息:https://www.npmjs.com/package/react-native-安全区域视图

这篇关于TypeError:无法读取未定义的属性“measureInWindow"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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