
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@humanoids/react-native-recaptcha
Advanced tools
React native component to use the invisible recaptcha v3 from Google. Forked from @haskkor/react-native-recaptchav3.
This package is forked from @haskkor/react-native-recaptchav3. Refreshing the reCAPTCHA v3 token caused the following error:
Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string.
Also, originWhitelist needed to be specified. Fixes for these two issues have been applied.
Below you will find the original README with updated code snippets.
React native component to use the invisible reCAPTCHA v3 from Google
https://www.google.com/recaptcha/intro/v3.html
npm install --save @humanoids/react-native-recaptcha
or
yarn add @humanoids/react-native-recaptcha
Note: React Native Community Webview requires you to link the native dependencies (https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md)

Automatically get a captcha token:
import ReCaptchaV3 from '@humanoids/react-native-recaptcha'
<ReCaptchaV3
captchaDomain={'https://yourowndomainname.co.nz'}
siteKey={'yourownsitekey'}
onReceiveToken={(token: string) => Alert.alert('CAPTCHA', token)}/>
One could also use a trigger to request a new token using the reference of the component:
import ReCaptchaV3 from '@humanoids/react-native-recaptcha'
<ReCaptchaV3
ref={(ref: RecaptchaV3) => this._captchaRef = ref}
captchaDomain={'https://yourowndomainname.co.nz'}
siteKey={'yourownsitekey'}
onReceiveToken={(token: string) => Alert.alert('CAPTCHA', token)}/>
<TouchableOpacity onPress={() => this._captchaRef.refreshToken()}>
<Text>Retry</Text>
</TouchableOpacity>
| Key | Description | Default | Required | Type |
|---|---|---|---|---|
captchaDomain | Your url registered with Google reCAPTCHA | None | true | string |
onReceiveToken | The callback used to get the captcha token from the component | None | true | (captchaToken: string) => void |
siteKey | The site key provided by Google reCAPTCHA | None | true | string |
Pull requests are welcome.
FAQs
React native component to use the invisible recaptcha v3 from Google. Forked from @haskkor/react-native-recaptchav3.
We found that @humanoids/react-native-recaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.