BlueWallet/MainBottomTabs.js

386 lines
9 KiB
JavaScript
Raw Normal View History

import { createStackNavigator, createAppContainer } from 'react-navigation';
2018-01-30 22:42:38 +00:00
2019-12-24 23:44:33 -06:00
import Settings from './screen/settings/settings';
import About from './screen/settings/about';
2019-02-01 15:04:00 -05:00
import ReleaseNotes from './screen/settings/releasenotes';
2020-03-31 21:13:48 +02:00
import Licensing from './screen/settings/licensing';
2018-10-31 12:53:18 +00:00
import Selftest from './screen/selftest';
import Language from './screen/settings/language';
2018-12-24 01:14:53 -05:00
import Currency from './screen/settings/currency';
import EncryptStorage from './screen/settings/encryptStorage';
import PlausibleDeniability from './screen/plausibledeniability';
2018-11-04 21:21:07 +00:00
import LightningSettings from './screen/settings/lightningSettings';
2019-07-18 11:22:01 +01:00
import ElectrumSettings from './screen/settings/electrumSettings';
2020-03-28 22:06:45 -04:00
import GeneralSettings from './screen/settings/GeneralSettings';
2020-03-29 23:41:02 -04:00
import NetworkSettings from './screen/settings/NetworkSettings';
2019-10-02 23:06:47 -04:00
import DefaultView from './screen/settings/defaultView';
import WalletsList from './screen/wallets/list';
import WalletTransactions from './screen/wallets/transactions';
import AddWallet from './screen/wallets/add';
import PleaseBackup from './screen/wallets/pleaseBackup';
import PleaseBackupLNDHub from './screen/wallets/pleaseBackupLNDHub';
import ImportWallet from './screen/wallets/import';
import WalletDetails from './screen/wallets/details';
import WalletExport from './screen/wallets/export';
import WalletXpub from './screen/wallets/xpub';
2018-10-28 01:11:07 +01:00
import BuyBitcoin from './screen/wallets/buyBitcoin';
import HodlHodl from './screen/wallets/hodlHodl';
import Marketplace from './screen/wallets/marketplace';
import ReorderWallets from './screen/wallets/reorderWallets';
2018-12-23 19:44:31 -05:00
import SelectWallet from './screen/wallets/selectWallet';
import details from './screen/transactions/details';
2019-08-10 02:57:55 -04:00
import TransactionStatus from './screen/transactions/transactionStatus';
2019-07-13 16:20:38 +01:00
import cpfp from './screen/transactions/CPFP';
import rbfBumpFee from './screen/transactions/RBFBumpFee';
import rbfCancel from './screen/transactions/RBFCancel';
import receiveDetails from './screen/receive/details';
import sendDetails from './screen/send/details';
import ScanQRCode from './screen/send/ScanQRCode';
import sendCreate from './screen/send/create';
import Confirm from './screen/send/confirm';
2019-09-27 15:49:56 +01:00
import PsbtWithHardwareWallet from './screen/send/psbtWithHardwareWallet';
import Success from './screen/send/success';
2020-04-28 17:27:35 +01:00
import Broadcast from './screen/send/broadcast';
import ScanLndInvoice from './screen/lnd/scanLndInvoice';
2019-01-12 00:23:32 +00:00
import LappBrowser from './screen/lnd/browser';
2018-12-25 11:34:51 -05:00
import LNDCreateInvoice from './screen/lnd/lndCreateInvoice';
import LNDViewInvoice from './screen/lnd/lndViewInvoice';
2018-12-28 20:15:59 -05:00
import LNDViewAdditionalInvoiceInformation from './screen/lnd/lndViewAdditionalInvoiceInformation';
2018-01-30 22:42:38 +00:00
const ReorderWalletsStackNavigator = createStackNavigator({
ReorderWallets: {
screen: ReorderWallets,
},
});
const WalletsStackNavigator = createStackNavigator(
{
Wallets: {
screen: WalletsList,
path: 'wallets',
2019-12-27 18:53:34 -06:00
navigationOptions: {
header: null,
},
},
WalletTransactions: {
screen: WalletTransactions,
path: 'WalletTransactions',
routeName: 'WalletTransactions',
},
2019-08-10 02:57:55 -04:00
TransactionStatus: {
screen: TransactionStatus,
},
TransactionDetails: {
screen: details,
},
WalletDetails: {
screen: WalletDetails,
},
HodlHodl: {
screen: HodlHodl,
},
2019-07-13 16:20:38 +01:00
CPFP: {
screen: cpfp,
},
RBFBumpFee: {
screen: rbfBumpFee,
},
RBFCancel: {
screen: rbfCancel,
},
Settings: {
2019-12-24 23:44:33 -06:00
screen: Settings,
path: 'Settings',
navigationOptions: {
headerStyle: {
backgroundColor: '#FFFFFF',
borderBottomWidth: 0,
elevation: 0,
},
headerTintColor: '#0c2550',
},
},
2019-10-02 23:06:47 -04:00
SelectWallet: {
screen: SelectWallet,
},
2018-12-24 01:14:53 -05:00
Currency: {
screen: Currency,
},
About: {
screen: About,
path: 'About',
},
2019-02-01 15:04:00 -05:00
ReleaseNotes: {
screen: ReleaseNotes,
path: 'ReleaseNotes',
2019-01-30 23:31:20 +00:00
},
Selftest: {
screen: Selftest,
},
2020-03-31 21:13:48 +02:00
Licensing: {
screen: Licensing,
path: 'Licensing',
},
2019-10-02 23:06:47 -04:00
DefaultView: {
screen: DefaultView,
path: 'DefaultView',
},
Language: {
screen: Language,
path: 'Language',
},
EncryptStorage: {
screen: EncryptStorage,
path: 'EncryptStorage',
},
2020-03-28 22:06:45 -04:00
GeneralSettings: {
screen: GeneralSettings,
path: 'GeneralSettings',
},
2020-03-29 23:41:02 -04:00
NetworkSettings: {
screen: NetworkSettings,
path: 'NetworkSettings',
},
PlausibleDeniability: {
screen: PlausibleDeniability,
path: 'PlausibleDeniability',
},
LightningSettings: {
screen: LightningSettings,
path: 'LightningSettings',
},
2019-07-18 11:22:01 +01:00
ElectrumSettings: {
screen: ElectrumSettings,
path: 'ElectrumSettings',
},
LNDViewInvoice: {
screen: LNDViewInvoice,
swipeEnabled: false,
gesturesEnabled: false,
},
LNDViewAdditionalInvoiceInformation: {
screen: LNDViewAdditionalInvoiceInformation,
},
2020-04-29 16:48:35 +02:00
Broadcast: {
screen: Broadcast,
navigationOptions: () => ({
title: 'Broadcast',
headerStyle: {
backgroundColor: '#FFFFFF',
borderBottomWidth: 0,
},
headerTintColor: '#0c2550',
}),
},
},
{ headerBackTitleVisible: false },
);
const CreateTransactionStackNavigator = createStackNavigator({
SendDetails: {
2019-12-27 18:53:34 -06:00
routeName: 'SendDetails',
screen: sendDetails,
},
Confirm: {
screen: Confirm,
},
2019-09-27 15:49:56 +01:00
PsbtWithHardwareWallet: {
screen: PsbtWithHardwareWallet,
},
CreateTransaction: {
screen: sendCreate,
navigationOptions: {
headerStyle: {
backgroundColor: '#FFFFFF',
borderBottomWidth: 0,
},
headerTintColor: '#0c2550',
},
},
Success: {
screen: Success,
},
2018-12-23 19:44:31 -05:00
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerRight: null,
},
2018-12-23 19:44:31 -05:00
},
});
2018-12-25 11:34:51 -05:00
const LNDCreateInvoiceStackNavigator = createStackNavigator({
LNDCreateInvoice: {
screen: LNDCreateInvoice,
},
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerLeft: null,
},
},
2018-12-25 11:34:51 -05:00
LNDViewInvoice: {
screen: LNDViewInvoice,
2018-12-28 20:15:59 -05:00
swipeEnabled: false,
2018-12-25 11:34:51 -05:00
gesturesEnabled: false,
},
2018-12-28 20:15:59 -05:00
LNDViewAdditionalInvoiceInformation: {
screen: LNDViewAdditionalInvoiceInformation,
},
2018-12-25 11:34:51 -05:00
});
const CreateWalletStackNavigator = createStackNavigator({
AddWallet: {
screen: AddWallet,
},
ImportWallet: {
screen: ImportWallet,
2019-12-31 21:31:04 -06:00
routeName: 'ImportWallet',
},
PleaseBackup: {
screen: PleaseBackup,
},
PleaseBackupLNDHub: {
screen: PleaseBackupLNDHub,
swipeEnabled: false,
gesturesEnabled: false,
navigationOptions: {
header: null,
},
},
});
const LightningScanInvoiceStackNavigator = createStackNavigator({
ScanLndInvoice: {
screen: ScanLndInvoice,
},
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerRight: null,
},
},
Success: {
screen: Success,
},
});
const HandleOffchainAndOnChainStackNavigator = createStackNavigator(
{
SelectWallet: {
screen: SelectWallet,
},
// LND:
ScanLndInvoice: {
screen: LightningScanInvoiceStackNavigator,
navigationOptions: {
header: null,
},
},
ScanQRCode: {
screen: ScanQRCode,
},
SendDetails: {
screen: CreateTransactionStackNavigator,
navigationOptions: {
header: null,
},
},
},
{ headerBackTitleVisible: false },
);
2018-10-28 01:11:07 +01:00
const MainBottomTabs = createStackNavigator(
2018-09-18 03:24:42 -04:00
{
Wallets: {
screen: WalletsStackNavigator,
2018-09-18 03:24:42 -04:00
path: 'wallets',
navigationOptions: {
header: null,
},
},
AddWallet: {
screen: CreateWalletStackNavigator,
navigationOptions: {
header: null,
},
},
WalletExport: {
screen: WalletExport,
},
WalletXpub: {
screen: WalletXpub,
},
2018-10-28 01:11:07 +01:00
BuyBitcoin: {
screen: BuyBitcoin,
},
Marketplace: {
screen: Marketplace,
},
//
SendDetails: {
2019-12-27 18:53:34 -06:00
routeName: 'SendDetails',
screen: CreateTransactionStackNavigator,
navigationOptions: {
header: null,
},
},
2019-09-29 16:01:27 -04:00
SelectWallet: {
screen: SelectWallet,
navigationOptions: {
headerLeft: null,
},
2019-09-29 16:01:27 -04:00
},
ReceiveDetails: {
screen: receiveDetails,
},
//
// LND:
ScanLndInvoice: {
screen: LightningScanInvoiceStackNavigator,
navigationOptions: {
header: null,
},
2018-01-30 22:42:38 +00:00
},
ScanQRCode: {
2019-09-21 13:37:37 -04:00
screen: ScanQRCode,
},
2019-01-12 00:23:32 +00:00
LappBrowser: {
screen: LappBrowser,
},
ReorderWallets: {
screen: ReorderWalletsStackNavigator,
navigationOptions: {
header: null,
},
},
2018-12-25 11:34:51 -05:00
LNDCreateInvoice: {
screen: LNDCreateInvoiceStackNavigator,
navigationOptions: {
header: null,
},
},
HandleOffchainAndOnChain: {
screen: HandleOffchainAndOnChainStackNavigator,
navigationOptions: {
header: null,
},
},
2018-01-30 22:42:38 +00:00
},
2018-09-18 03:24:42 -04:00
{
mode: 'modal',
2018-03-17 22:39:21 +02:00
},
2018-09-18 03:24:42 -04:00
);
2018-01-30 22:42:38 +00:00
export default createAppContainer(MainBottomTabs);