Initial commit

This commit is contained in:
Samandar Turgunboyev
2025-08-26 16:26:59 +05:00
commit fd95422447
318 changed files with 38301 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
// src/components/PatternPad.tsx
import React from 'react';
import { StyleSheet, View } from 'react-native';
import GesturePassword from 'react-native-gesture-password';
type Props = {
status?: 'normal' | 'right' | 'wrong';
message?: string;
onFinish: (pattern: string) => void; // masalan: "1-2-5-8"
};
export default function PatternPad({
status = 'normal',
message = 'Draw pattern',
onFinish,
}: Props) {
return (
<View style={styles.wrap}>
<GesturePassword
interval={8}
outerCircle
allowCross
status={status}
message={message}
onEnd={pwd => onFinish(pwd)}
/>
</View>
);
}
const styles = StyleSheet.create({
wrap: {
width: '100%',
height: 360,
justifyContent: 'center',
alignItems: 'center',
},
});