问题
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