Merge pull request #4204 from BlueWallet/modaldesk

FIX: Use containedModal on macOS to unblock prompt UI
This commit is contained in:
GLaDOS 2021-11-12 17:44:17 +00:00 committed by GitHub
commit 90fe70985e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@ const AztecoRedeemRoot = () => {
const ScanQRCodeStack = createNativeStackNavigator();
const ScanQRCodeRoot = () => (
<ScanQRCodeStack.Navigator screenOptions={{ headerShown: false, stackPresentation: 'fullScreenModal' }}>
<ScanQRCodeStack.Navigator screenOptions={{ headerShown: false, stackPresentation: isDesktop ? 'containedModal' : 'fullScreenModal' }}>
<RootStack.Screen name="ScanQRCode" component={ScanQRCode} />
</ScanQRCodeStack.Navigator>
);
@ -436,7 +436,7 @@ const InitRoot = () => (
<InitStack.Screen
name="ReorderWallets"
component={ReorderWalletsStackRoot}
options={{ headerShown: false, gestureEnabled: false, stackPresentation: 'fullScreenModal' }}
options={{ headerShown: false, gestureEnabled: false, stackPresentation: isDesktop ? 'containedModal' : 'fullScreenModal' }}
/>
<InitStack.Screen
name={isHandset ? 'Navigation' : 'DrawerRoot'}