TypeError: Cannot read property 'measureInWindow' of undefined

筅森魡賤 提交于 2020-05-15 08:12:10

问题


Environment:

Windows 10
Node js: 10.x
Expo: 35.0.0
React: 16.8
React-native: 0.62.0
React-navigation: 3.0.7

A simple app developed to test navigation on android app, facing the below error:

"TypeError: Cannot read property 'measureInWindow' of undefined"

Any suggestion would be appreciated. Thank you,


回答1:


install react-native-safe-area-view

following is the command to install react-native-safe-area-view:

npm i react-native-safe-area-view

for more info: https://www.npmjs.com/package/react-native-safe-area-view



来源:https://stackoverflow.com/questions/61006845/typeerror-cannot-read-property-measureinwindow-of-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!