Skip to content

Commit

Permalink
RN-205/RN-210 Allow tapping buttons on post and DM lists without clos…
Browse files Browse the repository at this point in the history
…ing keyboard (#823)
  • Loading branch information
hmhealey authored and enahum committed Aug 4, 2017
1 parent d7ef19f commit 53ae786
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/custom_section_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export default class CustomSectionList extends React.PureComponent {
sections={this.state.sections}
keyExtractor={this.props.keyExtractor}
renderItem={this.renderItem}
keyboardShouldPersistTaps='handled'
/>
);
}
Expand Down
2 changes: 2 additions & 0 deletions app/components/file_attachment_list/file_attachment_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
Keyboard,
View,
TouchableOpacity
} from 'react-native';
Expand Down Expand Up @@ -69,6 +70,7 @@ export default class FileAttachmentList extends Component {

handlePreviewPress = (file) => {
this.props.hideOptionsContext();
Keyboard.dismiss();
preventDoubleTap(this.goToImagePreview, this, this.props.postId, file.id);
};

Expand Down
1 change: 1 addition & 0 deletions app/components/post_list/post_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default class PostList extends PureComponent {
{...refreshControl}
renderItem={this.renderItem}
theme={theme}
keyboardShouldPersistTaps='handled'
/>
);
}
Expand Down

0 comments on commit 53ae786

Please sign in to comment.