JSPM

@manojkanth/react-native-google-recaptchav3

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 180
  • Score
    100M100P100Q96150F
  • License ISC

A React native component to use the invisible recaptcha v3 from Google

Package Exports

  • @manojkanth/react-native-google-recaptchav3
  • @manojkanth/react-native-google-recaptchav3/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@manojkanth/react-native-google-recaptchav3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React-native-google-recaptchaV3

A react native component that use the invisible reCAPTCHA v3 from Google

Features

  • Pure JS.
  • Compatible with both iOS and Android.

Tech

Installation

npm i @manojkanth/react-native-google-recaptchav3
npm i react-native-webview

Example

Import this module:

import ReCaptchaComponent from '@manojkanth/react-native-google-recaptchav3';

Use as a component:

<ReCaptchaComponent
  ref={(ref) => this._recaptchRef = ref}
  captchaDomain={'https://yourowndomain.com'}
  siteKey={'sitekey'}
  onTokenReceived={(token) => Alert.alert('CAPTCHA', token)}/>

To get new token:

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

Development

Any suggestion is welcome.