A smooth pattern lock component for react native
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.
react-native-pattern-lock
A smooth pattern lock component for react native.(iOS, android & web)
Preview
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.
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.
GitHub
Recommend
-
73
FilePond is a relatively new JavaScript file upload libary, in this tutorial we'll set up a new React app, integrate with the FilePond React Adapter component and set up a connection to a backend…
-
8
Tabs Smooth and fast cross platform Material Design Tabs for React Native Paper Dec...
-
6
React Native Easing Gradient Create smooth gradients in React Native. The problem Linear gradients often have hard edges where they start and/or end. We can avoid those by controlling the color mix with e...
-
15
React Native Bi-directional Infinite Scroll Implement bidirectional infinite smooth scroll using React Native. Introduction FlatList by react-native only allows...
-
2
Carousel A smooth image carousel built with React Native's FlatList component Oc...
-
10
react-native-smooth-blink-view react-native-smooth-blink-view is a simple - easy use component for React-Native. (iOS & Android) Installation yarn add react-native-smooth-blink-view
-
4
BackUnderstanding the Container Component Pattern with React HooksJanuary 14th, 2022 · 6 min read
-
1
What should we do to make the pattern of the aluminum plate smooth? xuan posted @ 2022年9月30日 11:13 in
-
4
Smooth Scrolling to an Element using scrollIntoView in React with a Fixed Header Jun 8, 2023 •
-
7
Scrolling through a website especially with a notched mouse wheel is typically jumpy and harder to navigate. Smooth Scrolling, or spring scrolling adds an animated touch to the traditional mouse scroll. If you've never experienced...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK