Fix Options modal on iOS (#2993)
This commit is contained in:
parent
61d3eda1fd
commit
42e5b79022
1 changed files with 6 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue