13

A smooth pattern lock component for react native

 3 years ago
source link: https://reactnativeexample.com/a-smooth-pattern-lock-component-for-react-native/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

react-native-pattern-lock

A smooth pattern lock component for react native.(iOS, android & web)

Preview

demo.android

demo.ios

demo.web

Install

RN 0.60+ with pod

yarn add react-native-gesture-handler react-native-reanimated react-native-svg @shanshang/react-native-pattern-lock
npx pod-install

Documentation

import {PatternLock} from "@shanshang/react-native-pattern-lock";
Props Type Default Description message string "" The header message on the top of the PatternLock. rowCount number 3 Number of circle rows. columnCount number 3 Number of circle columns. patternMargin number 25 Margin between circles. inactiveColor Color "#8E91A8" inactiveColor. activeColor Color "#5FA8FC" activeColor. errorColor Color "#D93609" errorColor. onCheck (res:string)=>boolean undefined Callback on end drawing, return false to shake message.

Online Experience

web: click here or Scan the QR code below on mobile brower.

web-experience

iOS : Download expo go app from App Store. Scan the QR code below in Camera app, and then click Open with expo go.

android: Download expo go app from App Store. Scan the QR code below in expo go app.

download-app

GitHub

https://github.com/bolan9999/react-native-pattern-lock


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK