@alitajs/gesture-password-react

GesturePassword react component

Usage no npm install needed!

<script type="module">
  import alitajsGesturePasswordReact from 'https://cdn.skypack.dev/@alitajs/gesture-password-react';
</script>

README

Gesture Password (手势密码)

install

// npm
npm install @alitajs/gesture-password-react --save

// yarn
yarn add @alitajs/gesture-password-react

usage

import React from 'react';
import GesturePassword from '@alitajs/gesture-password-react';

export default () => {
  const config = {
    width: 375,
    height: 300,
    onChange: (data: any) => console.log(data) // get gesture password
  };
  
  return <GesturePassword {...config} />;
};