question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard not showing up on android although Input field is focussed.

See original GitHub issue

This was working fine on iOS although. After clicking on the OTP field, the field had blue/green border around it to show that it was active but the keyboard didn’t show up.

I had to replace the _focusField function to make it work on android.

` _focusField = index => { this.fields[index].blur();

setTimeout(() => {
  this.fields[index].focus();
}, 100);

this.setState({
  selectedIndex: index
});

}; `

Also, textContentType= oneTimeCode is only for iOS 12+ and causes warning in other devices.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
Muheet707commented, May 23, 2020

Fixed my issue by just one line code. autoFocusOnLoad={false}

0reactions
ansonyaocommented, Jul 12, 2019

Now we realized this issue is actually caused by the android back button. You can check discussion in Issue #3. We have fixed this problem in v1.0.22.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to show soft-keyboard when edittext is focused
requestFocus(); -> in code. This will open soft keyboard on which edit-text has request focus as activity appears. This open the keyboard at...
Read more >
Keyboard not showing up on android although Input field is ...
This was working fine on iOS although. After clicking on the OTP field, the field had blue/green border around it to show that...
Read more >
Android EditText: avoid showing software keyboard on focus
Have you ever needed an EditText not showing the software keyboard when it gets tapped? Here is how to achieve it.
Read more >
Android keyboard not always appearing on input focus - ionic-v1
I have just run the latest nightly and have the same issue on Android 4.2.2 . I tap once and the input field...
Read more >
Handle input method visibility | Android Developers
Although Android gives focus to the first text field in your layout when the activity starts, it doesn't show the input method.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found