Fix Options modal on iOS (#2993)

This commit is contained in:
Elias Nahum 2019-07-18 15:58:49 -04:00 committed by GitHub
parent 61d3eda1fd
commit 42e5b79022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {
Animated,
Platform,
StyleSheet,
TouchableWithoutFeedback,
View,
@ -74,7 +75,11 @@ export default class OptionsModal extends PureComponent {
};
onItemPress = () => {
this.close();
if (Platform.OS === 'android') {
this.close();
} else {
this.props.actions.dismissModal();
}
};
render() {