
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
rn-recaptcha
Advanced tools
this is the React native component for Google Recaptch V2
yarn add rn-recaptcha
npm install rn-recaptcha
you can clone this project and check the App.js for see How to use it. or just like this.
import React, {Component} from 'react';
import {StyleSheet, View} from 'react-native';
import RNRecaptcha from 'RNRecaptcha';
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<RNRecaptcha siteKey={siteKey} onMessage={onMessage} url={testUrl}/>
</View>
);
}
}
const siteKey='6LcWuG4UAAAAAAn1v2RHkpyaE6yaXAc-uyRDSgMG';
const testUrl = 'https://rnrecaptcha.org';
onMessage = event => {
if ( event && event.nativeEvent.data) {
console.log(event.nativeEvent.data)
} else if(event.nativeEvent.data === 'expired'){
console.log('this is when you expired')
}else if(event.nativeEvent.data === 'error') {
console.log('this is when error')
} else {
console.log('other')
}
};
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 20
},
});
siteKey is the siteKey of the Google Recaptcha
testUrl is the url Domain defined on your google Recaptcha
onMessage is the callback function which will be called after the google verification.
there is RN Project Demo you can check: Demo
Any Suggestion or Questions, please contact me.
FAQs
this is the react native component fore google recaptcha v2
We found that rn-recaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.