BlueWallet/navigation/ScanQRCodeStack.tsx

29 lines
794 B
TypeScript
Raw Normal View History

2024-05-11 01:56:08 +02:00
import { createNativeStackNavigator } from '@react-navigation/native-stack';
2024-05-20 11:54:13 +02:00
import React from 'react';
2024-05-11 01:56:08 +02:00
import navigationStyle from '../components/navigationStyle';
2024-05-20 11:54:13 +02:00
import { useTheme } from '../components/themes';
import { ScanQRCodeComponent } from './LazyLoadScanQRCodeStack';
2024-05-11 01:56:08 +02:00
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;