如何在 ReactNative 应用程序中使用 reCaptcha? [英] how to use reCaptcha in ReactNative app?

查看:85
本文介绍了如何在 ReactNative 应用程序中使用 reCaptcha?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现以下库可在 RN 应用程序中使用 reCaptcha

I have found following lib for use reCaptcha in RN app

https://www.npmjs.com/package/react-native-recaptcha

我的代码是

  import ReCaptcha from 'react-native-recaptcha';
  ...
  <View style={{ flex: 1}}>
    <ReCaptcha
      sitekey={'test'}
    />
  </View>

但不显示重新验证码.我也尝试过在我的一个网站中使用的 sitekey,reCaptcha 正常工作 - 仍然没有.我错过了什么吗?

but no recaptcha is displayed. Also I have tried sitekey used in one of my websites where reCaptcha worked properly - still nothing. Do I miss something?

附言这个库的github不存在(

p.s. github of this lib not exists (

推荐答案

我认为 React Native 中不存在 reCaptcha 的库.所以你需要使用 wrapped webview,我知道它很慢并且可能包括你的要求,但我认为这只是解决方案.

I think there is no lib exist for reCaptcha in react native. So you need to use wrapped webview for it, I know it is slow and may include your requirment, but I think it is only solution.

请参阅React Native with reCATPCHAhttps://github.com/evenchange4/react-grecaptcha

这篇关于如何在 ReactNative 应用程序中使用 reCaptcha?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆