A React native component to use the invisible recaptcha v3 from Google
npm install @manojkanth/react-native-google-recaptchav3A react native component that use the invisible reCAPTCHA v3 from Google
- Pure JS.
- Compatible with both iOS and Android.
- React Native Webview requires to run this component (https://github.com/react-native-webview/react-native-webview#readme)
``sh`
npm i @manojkanth/react-native-google-recaptchav3
npm i react-native-webviewExample
Import this module:
`sh`
import ReCaptchaComponent from '@manojkanth/react-native-google-recaptchav3';
Use as a component:
`sh`
captchaDomain={'https://yourowndomain.com'}
siteKey={'sitekey'}
onTokenReceived={(token) => Alert.alert('CAPTCHA', token)}/>
To get new token:
`sh``
this._recaptchRef.refreshToken()
| Prop | Type | Optional | Default | Description |
| ------ | ------ | ------ | ------ | ------ |
| siteKey | String | NO | none | The site key provided by Google reCAPTCHA
| onTokenReceived | Function | NO | none | This returns captcha token from the component
| captchaDomain | String | NO | none | The url registered with Google reCAPTCHA
Any suggestion is welcome.