0.0.2 • Published 5 years ago

react-native-google-recaptcha-v3 v0.0.2

Weekly downloads
19
License
MIT
Repository
github
Last release
5 years ago

react-native-google-recaptcha-v3

A simple minimal implementation of google recaptcha v3 in react-native

Installation

yarn:

yarn add react-native-google-recaptcha-v3

npm:

npm i react-native-google-recaptcha-v3

install react-native-webview:

react-native-webview

Usage

import ReactNativeRecaptchaV3 from 'react-native-google-recaptcha-v3';
<View style={{flex: 1}}>
 <ReactNativeRecaptchaV3
   onCheck={(key) => console.log(key)} 
   url={url}
   siteKey={sitkey} 
 />
</View>

Documentation

Props

NameDescriptionDefaultType
onCheckfunction returning validation keynullFunc
siteKeysitekey get from googlenullString
urlurl that you registered your accountnullString

Contributing

Pull request are welcome i made this component because others that are avalible in npm are not working.

Author

Adrian Warkocz

License

MIT