Javascript 在UIManager中找不到RNCSAFearView
系统: 操作系统:Linux 5.3 Ubuntu 18.04.4 LTS(仿生海狸) CPU:(4)x64 Intel(R)Core(TM)i5-4300U CPU@1.90GHz 内存:378.16 MB/7.66 GB Shell:4.4.20-/bin/bash 二进制文件: 节点:12.16.1-/usr/bin/Node 纱线:1.21.1-/usr/bin/纱线 npm:6.13.4-/usr/bin/npm 看守人:4.9.0-/usr/local/bin/Watchman SDK:Javascript 在UIManager中找不到RNCSAFearView,javascript,reactjs,react-native,react-navigation,Javascript,Reactjs,React Native,React Navigation,系统: 操作系统:Linux 5.3 Ubuntu 18.04.4 LTS(仿生海狸) CPU:(4)x64 Intel(R)Core(TM)i5-4300U CPU@1.90GHz 内存:378.16 MB/7.66 GB Shell:4.4.20-/bin/bash 二进制文件: 节点:12.16.1-/usr/bin/Node 纱线:1.21.1-/usr/bin/纱线 npm:6.13.4-/usr/bin/npm 看守人:4.9.0-/usr/local/bin/Watchman SD
- Android SDK:
- 空气污染指数:23、25、27、28
- 构建工具:23.0.1、23.0.3、27.0.3、28.0.3
- 系统映像:android-28 |英特尔x86 Atom | 64,android-28 |谷歌 英特尔x86原子API
"dependencies": {
"@react-native-community/masked-view": "^0.1.7",
"@react-navigation/bottom-tabs": "^5.1.1",
"@react-navigation/native": "^5.0.9",
"@react-navigation/stack": "^5.1.1",
"prop-types": "^15.7.2",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-deprecated-custom-components": "^0.1.2",
"react-native-gesture-handler": "^1.6.0",
"react-native-reanimated": "^1.7.0",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.3.0",
"react-native-scrollable-tab-view": "^1.0.0",
"react-native-swiper": "^1.6.0-rc.3",
"react-native-tab-navigator": "^0.3.4"
}
代码:
功能主屏幕(){
返回(
回家!
);
}
函数设置屏幕(){
返回(
设置!
);
}
返回(
)
您需要安装react native safe area view
参考文献
function HomeScreen() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text>Home!</Text>
</View>
);
}
function SettingsScreen() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text>Settings!</Text>
</View>
);
}
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Home" component={HomeScreen} />
<Tab.Screen name="Settings" component={SettingsScreen} />
</Tab.Navigator>
</NavigationContainer>
)