Fix iOS Options modal cancel press (#1488)
This commit is contained in:
parent
e0339c1161
commit
68fe35c74d
2 changed files with 3 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ export default class OptionsModal extends PureComponent {
|
|||
} = this.props;
|
||||
|
||||
return (
|
||||
<TouchableWithoutFeedback onPress={this.close}>
|
||||
<TouchableWithoutFeedback onPress={this.handleCancel}>
|
||||
<View style={style.wrapper}>
|
||||
<AnimatedView style={{height: this.props.deviceHeight, left: 0, top: this.state.top, width: this.props.deviceWidth}}>
|
||||
<OptionsModalList
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ export default class OptionsModalList extends PureComponent {
|
|||
};
|
||||
|
||||
handleCancelPress = preventDoubleTap(() => {
|
||||
if (this.onCancelPress) {
|
||||
this.onCancelPress();
|
||||
if (this.props.onCancelPress) {
|
||||
this.props.onCancelPress();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue