Skip to content

Commit

Permalink
Don't hide url modal on emulator (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimenta authored Apr 30, 2021
1 parent 25bca75 commit 712eaaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Views/BrowserTab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { createAsyncMiddleware } from 'json-rpc-engine';
import { ethErrors } from 'eth-json-rpc-errors';

import EntryScriptWeb3 from '../../../core/EntryScriptWeb3';
import { getVersion } from 'react-native-device-info';
import { getVersion, isEmulatorSync } from 'react-native-device-info';
import ErrorBoundary from '../ErrorBoundary';
import { RPC } from '../../../constants/network';

Expand Down Expand Up @@ -994,7 +994,7 @@ export const BrowserTab = props => {
* Handle keyboard hide
*/
const keyboardDidHide = useCallback(() => {
if (!isTabActive()) return false;
if (!isTabActive() || isEmulatorSync()) return false;
if (!fromHomepage.current) {
if (showUrlModal) {
hideUrlModal();
Expand Down

0 comments on commit 712eaaf

Please sign in to comment.