mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
23 lines
951 B
TypeScript
23 lines
951 B
TypeScript
import React from 'react';
|
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import { PaymentCodeComponent, PaymentCodesListComponent } from './LazyLoadPaymentCodeStack';
|
|
import loc from '../loc'; // Assuming 'loc' is used for localization
|
|
|
|
export type PaymentCodeStackParamList = {
|
|
PaymentCode: { paymentCode: string };
|
|
PaymentCodesList: { walletID: string };
|
|
};
|
|
|
|
const Stack = createNativeStackNavigator<PaymentCodeStackParamList>();
|
|
|
|
const PaymentCodeStackRoot = () => {
|
|
return (
|
|
<Stack.Navigator screenOptions={{ headerShadowVisible: false }} initialRouteName="PaymentCode">
|
|
<Stack.Screen name="PaymentCode" component={PaymentCodeComponent} options={{ headerTitle: loc.bip47.payment_code }} />
|
|
<Stack.Screen name="PaymentCodesList" component={PaymentCodesListComponent} options={{ headerTitle: loc.bip47.payment_codes_list }} />
|
|
</Stack.Navigator>
|
|
);
|
|
};
|
|
|
|
export default PaymentCodeStackRoot;
|