@fatnlazycat/react-native-recaptcha-v3
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

react-native-recaptcha

A react native wrapper for google recaptcha v3

Installation

npm i @fatnlazycat/react-native-recaptcha-v3

Usage

<ReCaptcha {...props} />

Props

  • containerStyle An object that specifies the display style for the reCaptcha badge.

  • siteKey A string representing the siteKey provided in the Google reCaptcha admin console.

  • url URL associated with the app (This is the domain url that you registered on Google Admin Console when getting a siteKey)

  • action A string representing the ReCaptcha action (Refer to the ReCaptcha v3 document)

  • reCaptchaType: Currently two types of reCaptchas are supported:

    • invisible: Invisible reCaptcha do not require the users to solve a challenge. Refer to the reCaptcha V3 documentation for further information
    • normal: Normal reCaptcha may often require the user to click on a "I am not a robot" checkbox and solve a challenge (reCaptcha V2) - NOTE: This is meant to be used only with the firebase projects since firebase doesn't yet support reCaptcha v3.
  • config: Firebase project config found in the firebase console. This prop is only required when using the normal reCaptcha

  • onExecute A function to handle the response of ReCaptcha. Takes in a parameter that represents the response token from the ReCaptcha.

Contribution

Feel like contribution to this repository? The steps are simple:

  • Fork the repository
  • Make the changes you'd like to see
  • Create a PR and wait for it to be approved by two people before merging

Applications using react-native-recaptcha-v3

Pool App : https://www.poolapp.io

Thank-you for using react-native-recaptcha-v3 😀 Feel free to also leave any feedback or change requests you may have.

Package Sidebar

Install

npm i @fatnlazycat/react-native-recaptcha-v3

Weekly Downloads

86

Version

1.0.3

License

ISC

Unpacked Size

22.2 kB

Total Files

8

Last publish

Collaborators

  • fatnlazycat