react-native-otp-ui-kit
Version:
react-native-otp-ui-kit is a simple and highly customizable React Native component for entering OTP (One-Time Password) on iOS, Android, and Web. It provides an intuitive and user-friendly interface for inputting one-time passwords in your React Native ap
23 lines (21 loc) • 750 B
text/typescript
import { ColorValue, KeyboardTypeOptions, TextStyle, ViewStyle } from 'react-native';
export interface OtpInputProps {
length: number;
initialPlaceHolder?: number | string;
onCodeChanged?: (otp: string) => void;
onOTPFilled?: (otp: string) => void;
pinCodeContainerStyle: ViewStyle;
incorrectPinCodeContainerStyle?: ViewStyle,
placeholderTextColor?: ColorValue | string;
containerStyle: ViewStyle;
pinCodeTextStyle: TextStyle;
focusedPinCodeContainerStyle?: ViewStyle;
filledPinCodeContainerStyle?: ViewStyle;
highlighterColor?: string;
disabled?: boolean;
autoFocus?: boolean;
keyboardType?: KeyboardTypeOptions;
hideCursor?: boolean;
isOtpIncorrect?: boolean;
secureTextEntry?: boolean;
}