UNPKG

input-otp-native

Version:

One time passcode Input For React Native/Expo. Unstyled and fully customizable.

16 lines 840 B
import * as React from 'react'; import type { OTPInputRef } from './types'; export declare const OTPInput: React.ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "maxLength" | "onChange" | "textAlign" | "value" | "pattern" | "onComplete" | "pasteTransformer" | "containerClassName" | "containerStyle"> & { value?: string; onChange?: (newValue: string) => unknown; maxLength: number; pattern?: string | RegExp; textAlign?: "left" | "center" | "right"; onComplete?: (...args: any[]) => unknown; pasteTransformer?: (pasted: string) => string; containerClassName?: string; containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>; } & { render?: import("./types").InputOTPRenderFn; } & React.RefAttributes<OTPInputRef>>; //# sourceMappingURL=input.d.ts.map