// Basic usage with correct code<VerificationCode correctCode={31415} />// Verification code screen<VerificationCodeScreencorrectCode={correctCode}onSuccess={() => {// Handle successful verification}}onError={() => {// Handle verification error}}/>// Code validationconst validateCode = (input: string) => {return input === String(correctCode);};// Input handlingconst handleCodeChange = (code: string) => {if (code.length === CODE_LENGTH) {const isValid = validateCode(code);if (isValid) {onSuccess?.();} else {onError?.();}}};// Animated feedbackconst animatedStyle = useAnimatedStyle(() => ({transform: [{translateX: withSpring(isError.value ? 10 : 0, {damping: 3,stiffness: 100})}]}));
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
I value a lot your feedback! Help me improve by sharing your thoughts, suggestions, or reporting any issues you encounter. If you need assistance, send me an email at hello@reactiive.io