A simple minimal implementation of google recaptcha v3 in react-native
yarn:
yarn add react-native-google-recaptcha-v3
npm:
npm i react-native-google-recaptcha-v3
install react-native-webview:
import ReactNativeRecaptchaV3 from 'react-native-google-recaptcha-v3';
<View style={{flex: 1}}>
<ReactNativeRecaptchaV3
onCheck={(key) => console.log(key)}
url={url}
siteKey={sitkey}
/>
</View>
Name | Description | Default | Type |
---|---|---|---|
onCheck | function returning validation key | null | Func |
siteKey | sitekey get from google | null | String |
url | url that you registered your account | null | String |
Pull request are welcome i made this component because others that are avalible in npm are not working.
Adrian Warkocz