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} />;
};