0.6.3 • Published 7 months ago

react-native-mtcaptcha v0.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

react-native-mtcaptcha

MTCaptcha library for React Native library

Installation

npm install react-native-mtcaptcha

Usage

import { MTCaptcha } from 'react-native-mtcaptcha';

Dependencies

react-native-webview (https://github.com/react-native-community/react-native-webview)

Properties

NameTypeDescription
siteKey (required)stringSite key associated with the site. It can be fetched from admin portal. For more info please visit https://www.mtcaptcha.com/dev-guide
domainName (required)stringFully qualified doamin name configured in MTCaptcha admin portal e.g https://www.mtcaptcha.com
langstringMTCaptcha supports more than 100 languages. Please refer https://www.mtcaptcha.com/faq-custom-text-language
styleViewStyle (refer here)Style for the webview
widgetSizestringSupported values are mini and standard. Default is standard
themestringFind the different thme which can be set for captcha here
actionstringTag for captcha alatytics. e.g mobile Read more https://www.mtcaptcha.com/dev-guide-captcha-action
customLangTextJSONAll text and language can be customed. Please read more https://www.mtcaptcha.com/dev-guide-custom-messages.
customStyleJSONTo set custom style for the cpatcha widget. Please refer https://www.mtcaptcha.com/faq-custom-style
enableTestModestringThis optimises captcha widget for automated testing please refer https://www.mtcaptcha.com/dev-guide-automated-testing
onCaptchaVerifiedfunctionThis is a callback function when the captcha is verified
onCaptchaExpiredfunctionThis is a callback function when the captcha is expired
onErrorfunctionThis is a callback function when the captcha results in error such as invalid site key, un recognized doamin

License

MIT


Made with create-react-native-library

0.6.3

7 months ago

0.6.2

7 months ago

0.6.1

7 months ago

0.6.0

7 months ago

0.5.0

7 months ago