BlueWallet/navigation/ScanQRCodeStack.tsx
2024-05-21 11:56:10 +01:00

29 lines
794 B
TypeScript

import { createNativeStackNavigator } from '@react-navigation/native-stack';
import React from 'react';
import navigationStyle from '../components/navigationStyle';
import { useTheme } from '../components/themes';
import { ScanQRCodeComponent } from './LazyLoadScanQRCodeStack';
const Stack = createNativeStackNavigator();
const ScanQRCodeStackRoot = () => {
const theme = useTheme();
return (
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
<Stack.Screen
name="ScanQRCode"
component={ScanQRCodeComponent}
options={navigationStyle({
headerShown: false,
statusBarHidden: true,
presentation: 'fullScreenModal',
})(theme)}
/>
</Stack.Navigator>
);
};
export default ScanQRCodeStackRoot;