Skip to content

Commit

Permalink
chore: move SnapWebview out of Main navigation stack
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoufer committed Jul 9, 2024
1 parent b2cce87 commit 65827d2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/components/Nav/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React, {
useState,
} from 'react';
import { CommonActions, NavigationContainer } from '@react-navigation/native';
import { Animated, Linking } from 'react-native';
import { Animated, Linking, View } from 'react-native';
import { createStackNavigator } from '@react-navigation/stack';
import Login from '../../Views/Login';
import QRScanner from '../../Views/QRScanner';
Expand Down Expand Up @@ -111,6 +111,9 @@ import DefaultSettings from '../../Views/OnboardingSuccess/DefaultSettings';
import BasicFunctionalityModal from '../../UI/BasicFunctionality/BasicFunctionalityModal/BasicFunctionalityModal';
import SmartTransactionsOptInModal from '../../Views/SmartTransactionsOptInModal/SmartTranactionsOptInModal';
import NFTAutoDetectionModal from '../../../../app/components/Views/NFTAutoDetectionModal/NFTAutoDetectionModal';
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps)
import { SnapsExecutionWebView } from '../../../lib/snaps';
///: END:ONLY_INCLUDE_IF

const clearStackNavigatorOptions = {
headerShown: false,
Expand Down Expand Up @@ -771,6 +774,15 @@ const App = ({ userLoggedIn }) => {
// do not render unless a route is defined
(route && (
<>
{
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps)
}
<View>
<SnapsExecutionWebView />
</View>
{
///: END:ONLY_INCLUDE_IF
}
{isBlockaidFeatureEnabled() && <PPOMView />}
<NavigationContainer
// Prevents artifacts when navigating between screens
Expand Down

0 comments on commit 65827d2

Please sign in to comment.