mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import React from 'react';
|
|
|
|
import navigationStyle from '../components/navigationStyle';
|
|
import { useTheme } from '../components/themes';
|
|
import loc from '../loc';
|
|
import {
|
|
LnurlPayComponent,
|
|
LnurlPaySuccessComponent,
|
|
ScanLndInvoiceComponent,
|
|
SelectWalletComponent,
|
|
SuccessComponent,
|
|
} from './LazyLoadScanLndInvoiceStack';
|
|
|
|
const Stack = createNativeStackNavigator();
|
|
|
|
const ScanLndInvoiceRoot = () => {
|
|
const theme = useTheme();
|
|
return (
|
|
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
|
|
<Stack.Screen
|
|
name="ScanLndInvoice"
|
|
component={ScanLndInvoiceComponent}
|
|
options={navigationStyle({ closeButton: true, headerBackVisible: false, title: loc.send.header, statusBarStyle: 'light' })(theme)}
|
|
initialParams={{ uri: undefined, walletID: undefined, invoice: undefined }}
|
|
/>
|
|
<Stack.Screen
|
|
name="SelectWallet"
|
|
component={SelectWalletComponent}
|
|
options={navigationStyle({ title: loc.wallets.select_wallet })(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="Success"
|
|
component={SuccessComponent}
|
|
options={navigationStyle({ headerShown: false, gestureEnabled: false })(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="LnurlPay"
|
|
component={LnurlPayComponent}
|
|
options={navigationStyle({
|
|
title: '',
|
|
closeButton: true,
|
|
})(theme)}
|
|
/>
|
|
<Stack.Screen
|
|
name="LnurlPaySuccess"
|
|
component={LnurlPaySuccessComponent}
|
|
options={navigationStyle({
|
|
title: '',
|
|
closeButton: true,
|
|
headerBackVisible: false,
|
|
gestureEnabled: false,
|
|
})(theme)}
|
|
/>
|
|
</Stack.Navigator>
|
|
);
|
|
};
|
|
|
|
export default ScanLndInvoiceRoot;
|