0.1.4 • Published 1 year ago

rn-agmcaptchalite v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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;
PropTypeDescription
inputStyleTextStyleCustomize the style of the input field.
containerStyleViewStyleCustomize the style of the component container.
captchaContainerStyleViewStyleCustomize the style of the captcha container.
refreshButtonStyleViewStyleCustomize the style of the refresh button.
addSpecialCharacterbooleanSet to false to exclude special characters (default is true).
captchaLengthnumberChoose the length of the captcha (default is 5).
refreshIconReact.ReactNodeCustom refresh icon component.
captchaTimeoutnumberset captcha timeout time
timeOutActivebooleanif 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