React-native: Keyboard pops up after Alert is dismissed

Created on 14 Sep 2016  ·  1Comment  ·  Source: facebook/react-native

Issue Description

I have a View with a TextInput inside it. Before adding an Alert to View I do dismissKeyboard() called from react-native/Libraries/Utilities/dismissKeyboard. After the alert is dismissed the keyboard pops up again and also the TextInput is out of focus because I have already called dismissKeyboard. I have got a bar with Done button above keyboard but because of this even if I try to call dismissKeyboard the keyboard is not dismissed. This is actually an issue with UIAlertView which can be checked here and here

Additional Information

  • React Native version: 0.30.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Operating System (macOS, Linux, or Windows?): all
Locked

>All comments

I think without sample code it is tough to reproduce this issue. I am going to close it but if you have a sample app on rnplay.org that reproduces this problem then it would be great to open a new issue explaining what's going wrong with sample code. Thanks for reporting this!

Was this page helpful?
0 / 5 - 0 ratings