react-native-onetapinput
Version:
React Native OneTapInput is a customizable, easy-to-use, and highly customizable OTP input component for React Native.
31 lines • 984 B
TypeScript
import { TextStyle, ViewStyle } from "react-native";
export type OneTapInputProps = {
value?: string;
otpType?: 'number' | 'alpha' | 'alphanumeric' | 'custom';
handleOtpChange?: (otp: string) => void;
getFinalOtp?: (otp: string) => void;
otpBoxStyle?: ViewStyle;
otpTextStyle?: TextStyle;
otpBoxBorderColor?: string;
otpCount?: number;
otpContainerStyle?: ViewStyle;
getHashCode?: (hash: string[]) => void;
blinkingCursor?: boolean;
blinkingCursorAnimationDuration?: number;
cursorPosition?: 'left' | 'middle' | {
left?: number;
top?: number;
};
cursorColor?: string;
cursorWidth?: number;
cursorHeight?: number;
autoFocus?: boolean;
hiddenText?: boolean;
hiddenTextSymbol?: string;
touchEffectTransparency?: number;
error?: boolean;
errorText?: string;
errorTextStyle?: TextStyle;
errorContainerStyle?: ViewStyle;
};
//# sourceMappingURL=oneTapInputPropTypes.d.ts.map