Open dhayaljaswantgit opened 1 year ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch @twotalltotems/react-native-otp-input@1.3.11 for the project I'm working on.
@twotalltotems/react-native-otp-input@1.3.11
Here is the diff that solved my problem:
diff --git a/node_modules/@twotalltotems/react-native-otp-input/dist/index.js b/node_modules/@twotalltotems/react-native-otp-input/dist/index.js index 71580b8..49526e1 100644 --- a/node_modules/@twotalltotems/react-native-otp-input/dist/index.js +++ b/node_modules/@twotalltotems/react-native-otp-input/dist/index.js @@ -156,6 +156,7 @@ export default class OTPInputView extends Component { componentDidMount() { this.copyCodeFromClipBoardOnAndroid(); this.bringUpKeyBoardIfNeeded(); + setTimeout(() => this.bringUpKeyBoardIfNeeded(), 100); this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this.handleKeyboardDidHide); } componentWillUnmount() {
This issue body was partially generated by patch-package.
+1
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
@twotalltotems/react-native-otp-input@1.3.11
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.