@codsod/react-native-otp-input
Version:
A customizable OTP input component for React Native with TypeScript support, enabling seamless user authentication with flexible input handling and cross-platform compatibility.
17 lines (14 loc) • 353 B
TypeScript
import * as React from "react";
import { ViewStyle } from "react-native";
interface OTPInputProps {
length?: number;
onOtpComplete?: (message: string) => any;
style?: ViewStyle;
inputStyle?: ViewStyle;
}
export default function OTPInput({
length,
onOtpComplete,
style,
inputStyle,
}: OTPInputProps): React.JSX.Element;