react native踩坑——"RNCSafeAreaView was not found in the UIManager"

"react": "16.9.0",
"react-native": "0.61.5",

在使用react-navigation遇到的错误,在simulator中编译正常,但是在真机上就报错了
原因是react-native-safe-area-context暂不支持react-navigation5。换到4版本就解决了问题
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42565137/article/details/104470233