Ok, this problem with nested navigation--either stack navigation nested within tab navigation or the reverse--that appears in the Android simulator or (in my case) with the Expo iOS simulator is due to incompatible library references within package.json. As of today, the following collection allows both the Expo/iOS and Android simulators to function properly:
"dependencies": {
"@react-native-community/masked-view": "0.1.6",
"@react-navigation/bottom-tabs": "^5.4.4",
"@react-navigation/native": "^5.3.2",
"@react-navigation/stack": "^5.3.5",
"babel-preset-expo": "~8.1.0",
"expo": "~37.0.3",
"expo-constants": "^9.0.0",
"expo-image-picker": "~8.1.0",
"expo-location": "~8.1.0",
"expo-permissions": "~8.1.0",
"formik": "^2.1.4",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"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.2.0",
"react-native-web": "~0.11.7",
"yup": "^0.28.5"
},
"devDependencies": {
"@babel/core": "^7.8.6"
},
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…