diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js index 25227d747a93..7cafbe21ff6b 100644 --- a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js +++ b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js @@ -19,6 +19,7 @@ import withLocalize, {withLocalizePropTypes} from '@components/withLocalize'; import withTheme, {withThemePropTypes} from '@components/withTheme'; import withThemeStyles, {withThemeStylesPropTypes} from '@components/withThemeStyles'; import compose from '@libs/compose'; +import {canUseTouchScreen} from '@libs/DeviceCapabilities'; import * as ErrorUtils from '@libs/ErrorUtils'; import Navigation from '@libs/Navigation/Navigation'; import * as Session from '@userActions/Session'; @@ -220,10 +221,14 @@ class ContactMethodDetailsPage extends Component { * @param {Boolean} isOpen */ toggleDeleteModal(isOpen) { - InteractionManager.runAfterInteractions(() => { + if (canUseTouchScreen() && isOpen) { + InteractionManager.runAfterInteractions(() => { + this.setState({isDeleteModalOpen: isOpen}); + }); + Keyboard.dismiss(); + } else { this.setState({isDeleteModalOpen: isOpen}); - }); - Keyboard.dismiss(); + } } /**