BlueWallet/navigation/PaymentCodeStack.tsx
2026-01-31 16:17:33 -05:00

27 lines
1.1 KiB
TypeScript

import React, { lazy } from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import navigationStyle from '../components/navigationStyle';
import { useTheme } from '../components/themes';
import loc from '../loc'; // Assuming 'loc' is used for localization
import { PaymentCodeStackParamList } from './PaymentCodeStackParamList';
import { withLazySuspense } from './LazyLoadingIndicator';
const Stack = createNativeStackNavigator<PaymentCodeStackParamList>();
const PaymentCodesList = lazy(() => import('../screen/wallets/PaymentCodesList'));
const PaymentCodesListComponent = withLazySuspense(PaymentCodesList);
const PaymentCodeStackRoot = () => {
const theme = useTheme();
return (
<Stack.Navigator initialRouteName="PaymentCodesList" screenOptions={{ headerShadowVisible: false }}>
<Stack.Screen
name="PaymentCodesList"
component={PaymentCodesListComponent}
options={navigationStyle({ title: loc.bip47.contacts })(theme)}
/>
</Stack.Navigator>
);
};
export default PaymentCodeStackRoot;