From f61c164d31b9d2c2719fd587a2b2f56eaeb41e97 Mon Sep 17 00:00:00 2001 From: Fay-Hu <479389165@qq.com> Date: Sun, 29 Jan 2023 20:45:28 +0800 Subject: [PATCH] fix: issues-302 --- src/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 7fd9e45..7aa05fc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -152,6 +152,13 @@ const OtpInputs = forwardRef( ) { handleInputTextChange(text, index); } + + if (Platform.OS === 'ios' && index === 0 && text.length > 1) { + inputs.current[index]?.current?.setNativeProps({ + value: text[0], + text: text[0], + }); + } }; const handleKeyPress = (