RN-205/RN-210 Allow tapping buttons on post and DM lists without closing keyboard (#823)
This commit is contained in:
parent
d7ef19f883
commit
53ae78674e
3 changed files with 4 additions and 0 deletions
|
|
@ -248,6 +248,7 @@ export default class CustomSectionList extends React.PureComponent {
|
|||
sections={this.state.sections}
|
||||
keyExtractor={this.props.keyExtractor}
|
||||
renderItem={this.renderItem}
|
||||
keyboardShouldPersistTaps='handled'
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ export default class PostList extends PureComponent {
|
|||
{...refreshControl}
|
||||
renderItem={this.renderItem}
|
||||
theme={theme}
|
||||
keyboardShouldPersistTaps='handled'
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue