未找到本机 ExpoFirebaseCore 模块,您确定 expo-firebase-core 模块已正确链接吗?

Qun*_*her 6 firebase react-native expo

由于我使用的是包 "expo-firebase-recaptcha": "^2.3.1",每次我使用 expo start 运行应用程序时,我都会收到此警告:

警告未找到本机 ExpoFirebaseCore 模块,您确定 expo-firebase-core 模块已正确链接吗?在RootRouteNodeProvider(http://192.168.1.19:19000/inde x.ts.bundle//&platform=android&dev=true&hot=false:111237:23)在ContextNavigator(http://192.168.1.19:19000/index.ts ) 。捆绑//&platform=android&dev=true&hot=false:116052:24)
在 RNCSafeAreaProvider 在 SafeAreaProvider ( http://192.168.1.19:19000/index.ts .bundle//&platform=android&dev=true&hot=false:105019:24)
在RNGestureHandlerRootView at GestureHandlerRootView at GestureHandler at ExpoRoot ( http://192.168.1.19:19000/index.ts.bundle// &platform=android&dev=true&hot=false:116039:24) at App at withDevTools(App) ( http://192.168 .1.19:19000/index.ts .bundle//&platform=android&dev=true&hot=false:127358:27)
在 ErrorToastContainer ( http://192.168.1.19:19000/index .ts.bundle//&platform=android&dev=true&hot= false:127282:24)
在 RCTView at View ( http://192.168.1.19:19000/index.ts.bundle//&pla tform=android&dev=true&hot=false:48534:43) 在 RCTView at View ( http: //192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:48534:43 )在 AppContainer ( http://192.168.1.19:19000/index.ts.bundle//&platform =android&dev=true&hot=false:48411:36) 在 main(RootComponent) ( http://192.168.1.19:19000/index。ts.bundle//&platform=android&dev=true&hot=false:84925:28) LOG onAuthStateChanged: false

我发现很多人也遇到这个问题,但没有一个解决方案对我们任何人有帮助。我正在使用 Expo SDK 48。但是,我已经安装了这些软件包:

"expo-firebase-core": "^6.0.0",
"expo-modules-core": "^1.2.7",
Run Code Online (Sandbox Code Playgroud)

小智 3

expo-firebase-recaptcha内部依赖expo-firebase-core,并且由于这两个库在 Expo SDK 48 中均已弃用,因此本机模块已从 Expo GO 客户端中删除。

您可以迁移到React Native Firebase以访问支持的版本。