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