I\'m using React Native with the Native Base library. I need an onPress event to fire on Native Base\' ListItem (equivalent to TouchableOpacity) when the keyboard is open. <
For new googlers, in my case, I had a flatlist with an onPress property, and a searchBar. I wanted to press the row even when the keyboard is up, and I could do it only by double tap.Finally the problem was tackled by using "keyboardShouldPersistTaps" of the flatlist:
Hide_Soft_Keyboard=()=>{
Keyboard.dismiss();
}
....
(
{this.Hide_Soft_Keyboard(); this.props.navigation.navigate('Screen2')}}
/> ) }
/>