Get #Amazon #Prime for this #holiday #amazonprime #christmas #2019

#ReactNative - Should keyboard persist taps?

To tap on an item on a list when soft keyboard is up, I had to tap twice. First tap was to dismiss the soft keyboard. Second tap was a tap on the list item. 

How to tap once and to select the list item? You have to set keyboardShouldPersistTaps to 'always' so that the children of the scroll view can respond to the tap event.

keyboardShouldPersistTaps
keyboardShouldPersistTaps

Example:
<KeyboardAvoidingView style={styles.container}>
  <FlatList
    keyboardShouldPersistTaps='always'
    keyboardDismissMode='on-drag'
    data={this.props.blogArticles}
    renderItem={this._renderItem}
    keyExtractor={this._keyExtractor}
    ItemSeparatorComponent={() => <SeparatorComponent/>}
  />
</KeyboardAvoidingView>

Thank you for reading!

Jun