4

I am using react native 0.4

I have a modal with a TextInput, if i want to tap on one of the buttons that are on the modal I need to tap it twice - first tap closes the keyboard and only then I can tap on the button.
I would like to be able to tap on buttons that are on the modal without closing the keyborad.

enter image description here

neophyte
  • 6,540
  • 2
  • 28
  • 43
yossi
  • 12,945
  • 28
  • 84
  • 110

1 Answers1

1

i had the same problem on my flatlist, but i found keyboardShouldPersistTaps = true fixed it, maybe modal uses a list behind the scenes and you can just add keyboardShouldPersistTaps?

Adam Katz
  • 6,999
  • 11
  • 42
  • 74