Skip to content

mtcaptcha-public/react-native-mtcaptcha

Repository files navigation

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

Name Type Description
siteKey (required) string Site 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) string Fully qualified doamin name configured in MTCaptcha admin portal e.g https://www.mtcaptcha.com
lang string MTCaptcha supports more than 100 languages. Please refer https://www.mtcaptcha.com/faq-custom-text-language
style ViewStyle (refer here) Style for the webview
widgetSize string Supported values are mini and standard. Default is standard
theme string Find the different thme which can be set for captcha here
action string Tag for captcha alatytics. e.g mobile Read more https://www.mtcaptcha.com/dev-guide-captcha-action
customLangText JSON All text and language can be customed. Please read more https://www.mtcaptcha.com/dev-guide-custom-messages.
customStyle JSON To set custom style for the cpatcha widget. Please refer https://www.mtcaptcha.com/faq-custom-style
enableTestMode string This optimises captcha widget for automated testing please refer https://www.mtcaptcha.com/dev-guide-automated-testing
onCaptchaVerified function This is a callback function when the captcha is verified
onCaptchaExpired function This is a callback function when the captcha is expired
onError function This 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published