react-native 最新版本给出了这个问题
[RNScreens] 无法在 onHostResume 中初始化虚拟布局
package.json
"dependencies": {
"@react-native-async-storage/async-storage": "^2.0.0",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@reduxjs/toolkit": "^2.3.0",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"react": "18.3.1",
"react-native": "0.76.0",
"react-native-contacts": "^8.0.3",
"react-native-safe-area-context": "^4.11.1",
"react-native-screens": "^3.34.1",
"react-redux": "^9.1.2",
"redux-persist": "^6.0.0"
}
我在 RN 0.75 上发现了同样的问题,禁用无桥接模式对我来说效果很好,如上所述 https://github.com/software-mansion/react-native-screens/issues/2324#issuecomment-2334659956