From da32c22c568657569cecad2f504b516cc2db86b4 Mon Sep 17 00:00:00 2001 From: Dean Whillier Date: Wed, 30 Jan 2019 15:55:02 -0500 Subject: [PATCH] Enable tapping on channels when jump to textfield is focused. (#2535) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .../main/channels_list/filtered_list/filtered_list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/sidebars/main/channels_list/filtered_list/filtered_list.js b/app/components/sidebars/main/channels_list/filtered_list/filtered_list.js index ddada5194..e2966e46e 100644 --- a/app/components/sidebars/main/channels_list/filtered_list/filtered_list.js +++ b/app/components/sidebars/main/channels_list/filtered_list/filtered_list.js @@ -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} />