2018-09-18 08:48:53 +02:00
|
|
|
import { createStackNavigator } 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';
|
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';
|
|
|
|
import EncryptStorage from './screen/settings/encryptStorage';
|
2018-11-04 22:21:07 +01:00
|
|
|
import LightningSettings from './screen/settings/lightningSettings';
|
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';
|
|
|
|
import ImportWallet from './screen/wallets/import';
|
|
|
|
import WalletDetails from './screen/wallets/details';
|
|
|
|
import WalletExport from './screen/wallets/export';
|
2018-10-28 02:11:07 +02:00
|
|
|
import BuyBitcoin from './screen/wallets/buyBitcoin';
|
2018-09-30 10:31:09 +02:00
|
|
|
import scanQrWif from './screen/wallets/scanQrWif';
|
|
|
|
|
|
|
|
import details from './screen/transactions/details';
|
|
|
|
import rbf from './screen/transactions/RBF';
|
|
|
|
import createrbf from './screen/transactions/RBF-create';
|
|
|
|
|
|
|
|
import receiveDetails from './screen/receive/details';
|
|
|
|
|
|
|
|
import sendDetails from './screen/send/details';
|
|
|
|
import sendScanQrAddress from './screen/send/scanQrAddress';
|
|
|
|
import sendCreate from './screen/send/create';
|
2018-10-27 17:13:09 +02:00
|
|
|
import Confirm from './screen/send/confirm';
|
|
|
|
import Success from './screen/send/success';
|
2018-09-30 10:31:09 +02:00
|
|
|
|
|
|
|
import ManageFunds from './screen/lnd/manageFunds';
|
|
|
|
import ScanLndInvoice from './screen/lnd/scanLndInvoice';
|
2018-01-30 23:42:38 +01:00
|
|
|
|
2018-10-09 06:25:36 +02:00
|
|
|
const WalletsStackNavigator = createStackNavigator({
|
|
|
|
Wallets: {
|
|
|
|
screen: WalletsList,
|
|
|
|
path: 'wallets',
|
|
|
|
},
|
2018-10-29 23:11:48 +01:00
|
|
|
WalletTransactions: {
|
|
|
|
screen: WalletTransactions,
|
|
|
|
},
|
|
|
|
TransactionDetails: {
|
|
|
|
screen: details,
|
|
|
|
},
|
2018-10-30 10:35:24 +01:00
|
|
|
WalletDetails: {
|
|
|
|
screen: WalletDetails,
|
|
|
|
},
|
2018-10-29 23:11:48 +01:00
|
|
|
RBF: {
|
|
|
|
screen: rbf,
|
|
|
|
},
|
|
|
|
CreateRBF: {
|
|
|
|
screen: createrbf,
|
|
|
|
},
|
2018-10-09 06:25:36 +02:00
|
|
|
Settings: {
|
|
|
|
screen: Settings,
|
|
|
|
path: 'Settings',
|
|
|
|
navigationOptions: {
|
|
|
|
headerStyle: {
|
|
|
|
backgroundColor: '#FFFFFF',
|
|
|
|
borderBottomWidth: 0,
|
|
|
|
},
|
|
|
|
headerTintColor: '#0c2550',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
About: {
|
|
|
|
screen: About,
|
|
|
|
path: 'About',
|
|
|
|
},
|
2018-10-31 13:53:18 +01:00
|
|
|
Selftest: {
|
|
|
|
screen: Selftest,
|
|
|
|
},
|
2018-10-09 06:25:36 +02:00
|
|
|
Language: {
|
|
|
|
screen: Language,
|
|
|
|
path: 'Language',
|
|
|
|
},
|
|
|
|
EncryptStorage: {
|
|
|
|
screen: EncryptStorage,
|
|
|
|
path: 'EncryptStorage',
|
|
|
|
},
|
2018-11-04 22:21:07 +01:00
|
|
|
LightningSettings: {
|
|
|
|
screen: LightningSettings,
|
|
|
|
path: 'LightningSettings',
|
|
|
|
},
|
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,
|
|
|
|
},
|
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-10-20 23:10:21 +02:00
|
|
|
});
|
|
|
|
|
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: {
|
|
|
|
screen: AddWallet,
|
|
|
|
},
|
|
|
|
ImportWallet: {
|
|
|
|
screen: ImportWallet,
|
|
|
|
},
|
|
|
|
ScanQrWif: {
|
|
|
|
screen: scanQrWif,
|
|
|
|
},
|
|
|
|
WalletExport: {
|
|
|
|
screen: WalletExport,
|
|
|
|
},
|
2018-10-28 02:11:07 +02:00
|
|
|
BuyBitcoin: {
|
|
|
|
screen: BuyBitcoin,
|
|
|
|
},
|
2018-09-30 10:31:09 +02:00
|
|
|
//
|
2018-10-20 23:10:21 +02:00
|
|
|
SendDetails: {
|
|
|
|
screen: CreateTransactionStackNavigator,
|
|
|
|
navigationOptions: {
|
|
|
|
header: null,
|
|
|
|
},
|
|
|
|
},
|
2018-09-30 10:31:09 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
ReceiveDetails: {
|
|
|
|
screen: receiveDetails,
|
|
|
|
},
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// LND:
|
|
|
|
|
|
|
|
ManageFunds: {
|
|
|
|
screen: ManageFunds,
|
2018-09-18 09:24:42 +02:00
|
|
|
},
|
2018-09-30 10:31:09 +02:00
|
|
|
ScanLndInvoice: {
|
|
|
|
screen: ScanLndInvoice,
|
2018-01-30 23:42:38 +01:00
|
|
|
},
|
2018-10-23 00:51:30 +02:00
|
|
|
ScanQrAddress: {
|
|
|
|
screen: sendScanQrAddress,
|
|
|
|
},
|
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-10-28 02:11:07 +02:00
|
|
|
export default MainBottomTabs;
|