react-native-otp-fields
Version:
A customizable React Native OTP input component with smooth focus handling, digit-only validation, and easy integration for verification codes, PINs, or passcodes.
10 lines (9 loc) • 362 B
TypeScript
import { ViewStyle, TextStyle } from 'react-native';
interface OtpInputProps {
length?: number;
onOtpComplete?: (otp: string) => void;
inputStyle?: TextStyle;
containerStyle?: ViewStyle;
}
export default function OtpInput({ length, onOtpComplete, inputStyle, containerStyle, }: OtpInputProps): import("react/jsx-runtime").JSX.Element;
export {};