Fix iOS Options modal cancel press (#1488)

This commit is contained in:
enahum 2018-03-07 14:23:06 +00:00 committed by Harrison Healey
parent e0339c1161
commit 68fe35c74d
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -25,8 +25,8 @@ export default class OptionsModalList extends PureComponent {
};
handleCancelPress = preventDoubleTap(() => {
if (this.onCancelPress) {
this.onCancelPress();
if (this.props.onCancelPress) {
this.props.onCancelPress();
}
});