Keyboard not showing up on android although Input field is focussed.
See original GitHub issueThis 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:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed my issue by just one line code. autoFocusOnLoad={false}
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.