mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
62 lines
2.0 KiB
TypeScript
62 lines
2.0 KiB
TypeScript
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import React from 'react';
|
|
import navigationStyle, { CloseButtonPosition } from '../components/navigationStyle';
|
|
import { useTheme } from '../components/themes';
|
|
import loc from '../loc';
|
|
import {
|
|
LNDCreateInvoiceComponent,
|
|
LNDViewAdditionalInvoiceInformationComponent,
|
|
LNDViewAdditionalInvoicePreImageComponent,
|
|
LNDViewInvoiceComponent,
|
|
SelectWalletComponent,
|
|
} from './LazyLoadLNDCreateInvoiceStack';
|
|
|
|
const Stack = createNativeStackNavigator();
|
|
|
|
const LNDCreateInvoiceRoot = () => {
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
|
|
<Stack.Screen
|
|
name="LNDCreateInvoice"
|
|
component={LNDCreateInvoiceComponent}
|
|
options={navigationStyle({
|
|
title: loc.receive.header,
|
|
closeButtonPosition: CloseButtonPosition.Right,
|
|
headerBackVisible: false,
|
|
statusBarStyle: 'light',
|
|
})(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="SelectWallet"
|
|
component={SelectWalletComponent}
|
|
options={navigationStyle({ title: loc.wallets.select_wallet })(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="LNDViewInvoice"
|
|
component={LNDViewInvoiceComponent}
|
|
options={navigationStyle({
|
|
statusBarStyle: 'auto',
|
|
headerTitle: loc.lndViewInvoice.lightning_invoice,
|
|
headerStyle: {
|
|
backgroundColor: theme.colors.customHeader,
|
|
},
|
|
})(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="LNDViewAdditionalInvoiceInformation"
|
|
component={LNDViewAdditionalInvoiceInformationComponent}
|
|
options={navigationStyle({ title: loc.lndViewInvoice.additional_info })(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="LNDViewAdditionalInvoicePreImage"
|
|
component={LNDViewAdditionalInvoicePreImageComponent}
|
|
options={navigationStyle({ title: loc.lndViewInvoice.additional_info })(theme)}
|
|
/>
|
|
</Stack.Navigator>
|
|
);
|
|
};
|
|
|
|
export default LNDCreateInvoiceRoot;
|