0.1.4 • Published 1 year ago
rn-agmcaptchalite v0.1.4
React Native AGM Captcha Lite
A simple and customizable Captcha provider for React Native.
Installation
Install the package using npm:
npm install rn-agmcaptchalite
USAGE
import React, { useRef } from 'react';
import { Button } from 'react-native';
import {Captcha} from 'rn-agmcaptchalite';
const YourComponent = () => {
const captchaRef = useRef(null);
const captchaHandle = () => {
const captchaResult = captchaRef.current.captchaChecking();
console.log(captchaResult)
// If the user enters the correct captcha, captchaResult is true; otherwise, false
};
return (
<Captcha
ref={captchaRef}
>
</Captcha>
<Button title = 'click' onPress={captchaHandle}/>
);
};
export default YourComponent;
Prop | Type | Description |
---|---|---|
inputStyle | TextStyle | Customize the style of the input field. |
containerStyle | ViewStyle | Customize the style of the component container. |
captchaContainerStyle | ViewStyle | Customize the style of the captcha container. |
refreshButtonStyle | ViewStyle | Customize the style of the refresh button. |
addSpecialCharacter | boolean | Set to false to exclude special characters (default is true ). |
captchaLength | number | Choose the length of the captcha (default is 5 ). |
refreshIcon | React.ReactNode | Custom refresh icon component. |
captchaTimeout | number | set captcha timeout time |
timeOutActive | boolean | if you want time out feature, make it true , (default is false ) |
0.1.0
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.0.15
1 year ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago