RN-205/RN-210 Allow tapping buttons on post and DM lists without closing keyboard (#823)

This commit is contained in:
Harrison Healey 2017-08-04 09:14:57 -04:00 committed by enahum
parent d7ef19f883
commit 53ae78674e
3 changed files with 4 additions and 0 deletions

View file

@ -248,6 +248,7 @@ export default class CustomSectionList extends React.PureComponent {
sections={this.state.sections}
keyExtractor={this.props.keyExtractor}
renderItem={this.renderItem}
keyboardShouldPersistTaps='handled'
/>
);
}

View file

@ -4,6 +4,7 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
Keyboard,
View,
TouchableOpacity
} from 'react-native';
@ -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);
};

View file

@ -176,6 +176,7 @@ export default class PostList extends PureComponent {
{...refreshControl}
renderItem={this.renderItem}
theme={theme}
keyboardShouldPersistTaps='handled'
/>
);
}