From 16618e5232b20a76f16344fca1b6be29ed5ccd68 Mon Sep 17 00:00:00 2001 From: Yuri Silva Date: Sat, 28 May 2022 02:43:26 -0300 Subject: [PATCH] fix: adjust typings from work react native actualy --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 3473a5d..f3fdc52 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ declare module "react-native-confirmation-code-input" { type InputPositions = 'left' | 'right' | 'center' | 'full-width'; type ClassNames = 'border-box' | 'border-circle' | 'border-b' | 'border-b-t' | 'border-l-r'; - interface CodeInputProps extends ReactNative.TextInputProperties { + interface CodeInputProps extends ReactNative.TextInputProps { codeLength?: number; compareWithCode?: string; inputPosition?: InputPositions; @@ -20,6 +20,7 @@ declare module "react-native-confirmation-code-input" { codeInputStyle?: any, containerStyle?: any; onFulfill: Function; + onCodeChange: Function; } export default class CodeInput extends React.Component { }