我试图用React Native制作一个应用程序,我已经被困了几个小时。每当我尝试用Android Studio运行我的应用程序时,我都会得到错误:" requirenativeecomponent: "RNSScreen"未在UIManager"上找到。我想我已经有了获取原生模块所需的所有依赖,这里我有了所有的包。json依赖性:
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"firebase": "^9.1.3",
"react": "17.0.2",
"react-global-hook": "^2.0.0",
"react-native": "0.66.0",
"react-native-ble-manager": "^7.6.3",
"react-native-ble-plx": "^2.0.2",
"react-native-gesture-handler": "^1.10.3",
"react-native-reanimated": "^2.2.3",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.8.0",
"react-navigation": "^4.4.4",
"react-navigation-stack": "^2.10.4"
我还需要安装什么吗?
通常这表示没有安装react-native-screens
尝试npm i react-native-screens
,但我建议尝试使用expo管理环境。