@fatnlazycat/react-native-recaptcha-v3 v1.0.3
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 informationnormal
: 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 reCaptchaonExecute
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