Fix post background color from getting stuck (#2126)

This commit is contained in:
Elias Nahum 2018-09-15 19:27:49 -03:00 committed by GitHub
parent 0af9c6fbaf
commit 24185dc47d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,10 +50,14 @@ export default class OptionsContext extends PureComponent {
}
};
handleShow = () => {
this.isShowing = true;
this.props.toggleSelected(true);
}
handleShowUnderlay = () => {
this.beforeShow();
this.props.toggleSelected(true);
this.isShowing = this.state.actions.length > 0;
};
hide = () => {
@ -93,6 +97,7 @@ export default class OptionsContext extends PureComponent {
arrowDirection='down'
longPress={true}
onHide={this.handleHide}
onShow={this.handleShow}
onPress={this.handlePress}
underlayColor='transparent'
>