Skip to content

Commit

Permalink
Merge pull request #1 from xjdqq/issues-302
Browse files Browse the repository at this point in the history
Update index.tsx
  • Loading branch information
xjdqq authored Sep 8, 2022
2 parents bb612d4 + 2980eb9 commit 79504e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ const OtpInputs = forwardRef<OtpInputsRef, Props>(
) {
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 = (
Expand Down

1 comment on commit 79504e1

@xjdqq
Copy link
Owner Author

@xjdqq xjdqq commented on 79504e1 Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix ios paste code the UI abnormal r5n-labs#302

Please sign in to comment.