I have the following code, which works on my iOS app and keeps the keyboard open when clicking anywhere on the screen, but on Android it still closes the keyboard, any ideas?
return (
<ScrollView
style={ styles.flex }
automaticallyAdjustContentInsets={ false }
keyboardShouldPersistTaps={ true }
contentInset={{ 'bottom':20 }}
keyboardDismissMode='on-drag'
>
<View>...</View>
</ScrollView>
);
if your ScrollView/FlatList is inside another ScrollView/Flatlist you have to set keyboardShouldPersistTaps to parent ScrollView/Flatlist as well as all nested ones
Can you please try this. keyboardShouldPersistTaps="handled"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With