From 0892bdaecb2337acb68586017b3992c519df3960 Mon Sep 17 00:00:00 2001 From: Xavier Le Cunff Date: Mon, 9 May 2022 12:06:51 +0200 Subject: [PATCH] feat: export OtpInputsProps type --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 0ce44ff..a1477bb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -30,7 +30,7 @@ import { OtpInputsRef, SupportedKeyboardType } from './types'; const supportAutofillFromClipboard = Platform.OS === 'android' || parseInt(Platform.Version as string, 10) < 14; -type Props = TextInputProps & { +export type OtpInputsProps = TextInputProps & { autofillFromClipboard: boolean; autofillListenerIntervalMS?: number; keyboardType?: SupportedKeyboardType; @@ -54,7 +54,7 @@ const styles = StyleSheet.create({ }, }); -const OtpInputs = forwardRef( +const OtpInputs = forwardRef( ( { autoFocus,