BlueWallet/navigation/AddWalletStack.tsx

103 lines
3.3 KiB
TypeScript
Raw Normal View History

2024-05-05 22:33:06 +02:00
import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import {
AddComponent,
ImportCustomDerivationPathComponent,
2024-05-06 00:37:01 +02:00
ImportWalletComponent,
2024-05-05 22:33:06 +02:00
PleaseBackupComponent,
PleaseBackupLNDHubComponent,
PleaseBackupLdkComponent,
ProvideEntropyComponent,
WalletsAddMultisigComponent,
WalletsAddMultisigStep2Component,
WalletsAddMultisigHelpComponent,
2024-05-06 00:37:01 +02:00
ImportWalletDiscoveryComponent,
2024-05-05 22:33:06 +02:00
} from './LazyLoadAddWalletStack';
import { AddWalletStackParamList } from '../typings/NavigationTypes';
import navigationStyle from '../components/navigationStyle';
import { useTheme } from '../components/themes';
import loc from '../loc';
const Stack = createNativeStackNavigator<AddWalletStackParamList>();
const AddWalletStack = () => {
const theme = useTheme();
return (
<Stack.Navigator initialRouteName="AddWallet">
<Stack.Screen
name="AddWallet"
component={AddComponent}
options={navigationStyle({
closeButton: true,
headerBackVisible: false,
title: loc.wallets.add_title,
})(theme)}
/>
<Stack.Screen name="ImportCustomDerivationPath" component={ImportCustomDerivationPathComponent} />
<Stack.Screen
2024-05-06 00:37:01 +02:00
name="ImportWallet"
component={ImportWalletComponent}
2024-05-05 22:33:06 +02:00
options={navigationStyle({ title: loc.wallets.import_title })(theme)}
/>
2024-05-06 00:37:01 +02:00
<Stack.Screen
name="ImportWalletDiscovery"
component={ImportWalletDiscoveryComponent}
options={navigationStyle({
title: loc.wallets.import_discovery_title,
})(theme)}
/>
2024-05-05 22:33:06 +02:00
<Stack.Screen
name="PleaseBackup"
component={PleaseBackupComponent}
options={navigationStyle({
gestureEnabled: false,
headerBackVisible: false,
title: loc.pleasebackup.title,
})(theme)}
/>
<Stack.Screen
name="PleaseBackupLNDHub"
component={PleaseBackupLNDHubComponent}
options={navigationStyle({ gestureEnabled: false, headerBackVisible: false, title: loc.pleasebackup.title })(theme)}
/>
<Stack.Screen
name="PleaseBackupLdk"
component={PleaseBackupLdkComponent}
options={navigationStyle({
title: loc.pleasebackup.title,
gestureEnabled: false,
headerBackVisible: false,
})(theme)}
/>
<Stack.Screen
name="ProvideEntropy"
component={ProvideEntropyComponent}
options={navigationStyle({ title: loc.entropy.title })(theme)}
/>
<Stack.Screen name="WalletsAddMultisig" component={WalletsAddMultisigComponent} options={navigationStyle({ title: '' })(theme)} />
<Stack.Screen
name="WalletsAddMultisigStep2"
component={WalletsAddMultisigStep2Component}
options={navigationStyle({ title: '', gestureEnabled: false })(theme)}
/>
<Stack.Screen
name="WalletsAddMultisigHelp"
component={WalletsAddMultisigHelpComponent}
options={navigationStyle({
title: '',
gestureEnabled: false,
headerStyle: {
backgroundColor: '#0070FF',
},
headerTintColor: '#FFFFFF',
headerBackTitleVisible: false,
statusBarStyle: 'light',
headerShadowVisible: false,
})(theme)}
/>
</Stack.Navigator>
);
};
export default AddWalletStack;