Sunday, December 15, 2024
HomeiOS Developmentios - React Native: Keyboard dismisses when urgent button inside modal, then...

ios – React Native: Keyboard dismisses when urgent button inside modal, then the button must be pressed a second time to truly work


I’m utilizing the Modalize element in react native, and contained in the modal I’ve some textual content fields that are mechanically targeted after which a button to take you to a special display. After I press the button, the keyboard will get dismissed, then I’ve to press the button once more to truly navigate. How can I make the button work the primary time with out having to dismiss the keyboard first?

The modal isn’t within any form of ScrollView, so I am unable to add keyboardShouldPersistTaps=”at all times”. I’ve tried wrapping the modal in a scrollview and including that, however that does not work. I’ve additionally tried wrapping the element that is within the modal in a scrollview with that parameter, identical subject. I’ve tried wrapping simply the Pressable element in a scrollview. I’ve additionally tried changing Pressable with TouchableWithoutFeedback.

Edit: I’ve now tried including keyboardShouldPersistTaps=”at all times” to each single view/element from the basis all the best way all the way down to the pressable.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments