Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard not open first time in android #218

Open
hirendudhat03 opened this issue Aug 1, 2023 · 5 comments
Open

keyboard not open first time in android #218

hirendudhat03 opened this issue Aug 1, 2023 · 5 comments

Comments

@hirendudhat03
Copy link

Describe the bug
A clear and concise description of what the bug is.

when go to first time in screen after click on input keyboard not open but when app minimize and open again keyboard open automatic after that app working fine.

Smartphone (please complete the following information):

  • Device: [all android devices]

please help me to find out this issue.

@JoaoLucas8760
Copy link

same bug here

@JoaoLucas8760
Copy link

i resolved the bug with:
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..6c591d6 100644
--- a/node_modules/@twotalltotems/react-native-otp-input/dist/index.js
+++ b/node_modules/@twotalltotems/react-native-otp-input/dist/index.js
@@ -155,7 +155,7 @@ export default class OTPInputView extends Component {
}
componentDidMount() {
this.copyCodeFromClipBoardOnAndroid();

  •    this.bringUpKeyBoardIfNeeded();
    
  •    setTimeout(() => this.bringUpKeyBoardIfNeeded(), 100);
       this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this.handleKeyboardDidHide);
    
    }
    componentWillUnmount() {

@gajjartejas
Copy link

Here is the patch-package patch

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..cc4c29d 100644
--- a/node_modules/@twotalltotems/react-native-otp-input/dist/index.js
+++ b/node_modules/@twotalltotems/react-native-otp-input/dist/index.js
@@ -155,7 +155,8 @@ export default class OTPInputView extends Component {
     }
     componentDidMount() {
         this.copyCodeFromClipBoardOnAndroid();
-        this.bringUpKeyBoardIfNeeded();
+        setTimeout(() => this.bringUpKeyBoardIfNeeded(), 100);
+
         this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this.handleKeyboardDidHide);
     }
     componentWillUnmount() {

@deeps0903
Copy link

not works

@Mrudula-Nemani
Copy link

same bug here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants