Fix Options modal on iOS (#2994)

This commit is contained in:
Mattermost Build 2019-07-18 22:00:49 +02:00 committed by Elias Nahum
parent 6d10915aad
commit 93498a3ab5

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() {