Enable tapping on channels when jump to textfield is focused. (#2535)

* Allow tapping on channels in the filtered list …

… when the keyboard is open. This option also allows tapping on non-interactive areas to still dismiss the keyboard.

* keyboard propery updates

- change ‘on-drag’ to ‘interractive’
- change ‘handled’ to ‘always’ to be more consistent with other uses of same property

* support multiple keyboard dismiss modes
This commit is contained in:
Dean Whillier 2019-01-30 15:55:02 -05:00 committed by GitHub
parent ac2bdc9fe3
commit da32c22c56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import {
Text,
TouchableHighlight,
View,
Platform,
} from 'react-native';
import {injectIntl, intlShape} from 'react-intl';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
@ -396,7 +397,8 @@ class FilteredList extends Component {
renderItem={this.renderItem}
keyExtractor={(item) => item.id}
onViewableItemsChanged={this.updateUnreadIndicators}
keyboardDismissMode='on-drag'
keyboardDismissMode={Platform.OS === 'ios' ? 'interactive' : 'on-drag'}
keyboardShouldPersistTaps='always'
maxToRenderPerBatch={10}
viewabilityConfig={VIEWABILITY_CONFIG}
/>