rn-awesome-pin-input
Version:
A customizable pin input component for React Native
21 lines (18 loc) • 510 B
text/typescript
import { StyleProp, ViewStyle } from "react-native";
export interface PinInputProps {
pinLength?: number;
value: string;
onChange?: (newValue: string) => void;
blinkingSpeed?: number;
cursorColor?: string;
containerStyle?: StyleProp<ViewStyle>;
pinStyle?: StyleProp<ViewStyle>;
activePinStyle?: ViewStyle;
showCursor?: boolean;
secureTextEntry?: boolean;
shouldOnlyAcceptNumbers?: boolean;
}
export interface PinInputRef {
focus: () => void;
blur: () => void;
}