expo-firebase-recaptcha 软件包在 2024 年仍然有效吗?

问题描述 投票:0回答:1

我需要在我的

react Native - expo应用程序
中实现firebase SDK提供的功能signInWithPhoneNumber

此功能需要一个 recaptcha 验证器,但是,Firebase 官方文档没有提供任何有关官方包的信息或我们可以执行的解决方法,以便在 React Native 中使用 recaptcha 验证。

另一方面,每当我使用这个组件时,包

expo-firebase-recaptcha
就无法工作:

<FirebaseRecaptchaVerifierModal
     ref={recaptchaRef}
     firebaseConfig={_firebaseService.options}
     attemptInvisibleVerification={true}
 />

应用程序抛出错误,指出包

expo-firebase-recaptcha
react-native-web-view
文件夹中找不到
node-modules
包,但是,当我安装
react-native-web-view
时,应用程序甚至无法在我的手机中启动。

我正在使用命令

npx expo start
expo-go app
中启动应用程序。

[!注意] “如果该应用程序无法与 Expo Go 配合使用,则更不可能与

npx expo run:android
配合使用。”

[!注意] 我使用的是expo sdk 50.0.11版本

firebase react-native expo recaptcha
1个回答
0
投票

该库不再被积极维护。 Expo 为其编写了迁移文档React Native Firebase

© www.soinside.com 2019 - 2024. All rights reserved.