BlueWallet/navigation/PaymentCodeStack.tsx

25 lines
926 B
TypeScript
Raw Normal View History

2024-06-07 20:50:50 +02:00
import React from 'react';
2024-06-11 02:44:05 +02:00
import { createNativeStackNavigator } from '@react-navigation/native-stack';
2024-06-07 20:50:50 +02:00
import navigationStyle from '../components/navigationStyle';
import { useTheme } from '../components/themes';
import loc from '../loc'; // Assuming 'loc' is used for localization
import { PaymentCodeStackParamList } from './PaymentCodeStackParamList';
2024-06-11 02:44:05 +02:00
import PaymentCodesListComponent from './LazyLoadPaymentCodeStack';
2024-06-07 20:50:50 +02:00
const Stack = createNativeStackNavigator<PaymentCodeStackParamList>();
const PaymentCodeStackRoot = () => {
const theme = useTheme();
return (
2024-06-11 02:44:05 +02:00
<Stack.Navigator initialRouteName="PaymentCodesList" screenOptions={{ headerShadowVisible: false }}>
2024-06-07 20:50:50 +02:00
<Stack.Screen
name="PaymentCodesList"
component={PaymentCodesListComponent}
options={navigationStyle({ title: loc.bip47.contacts })(theme)}
2024-06-07 20:50:50 +02:00
/>
</Stack.Navigator>
);
};
export default PaymentCodeStackRoot;