-
Notifications
You must be signed in to change notification settings - Fork 31
/
App.js
executable file
·127 lines (121 loc) · 6.76 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react'
import { StackNavigator } from 'react-navigation'
import { Provider } from 'mobx-react'
import { Tab, TabNavigatorConfigs, TabRouteConfigs } from './src/page/TabbedNavigation'
import TabCommon from './src/page/TabbedCommonNavagation'
import TabWithOutUniswap from './src/page/TabbedWithoutUniswap'
import Create_Account from './src/page/Assets/secondary/CreateAccount'
import CreatePCXAccount from './src/page/Assets/secondary/CreatePCXAccount'
import Backup_Account from './src/page/Assets/secondary/BackupAccount'
import MnemonicWord_1 from './src/page/Assets/secondary/MnemonicWord_1'
import MnemonicWord_2 from './src/page/Assets/secondary/MnemonicWord_2'
import MnemonicWord_3 from './src/page/Assets/secondary/MnemonicWord_3'
import QR_Code from './src/page/Assets/secondary/QRCode'
import Coin_details from './src/page/Assets/secondary/CoinDetails'
import Coin_PCX_details from './src/page/Assets/secondary/CoinPCXDetail'
import PCX_transfer from './src/page/Assets/secondary/ChainxTransfer/index'
import PCX_Transfer_Hash_Detail from './src/page/Assets/secondary/ChainxTransfer/chainTransferDetail'
import Manage_Account from './src/page/Profile/secondary/ManageAccount'
import Transfer from './src/page/Assets/secondary/Transfer/Transfer'
import Make_transfer from './src/page/Assets/secondary/Transfer/MakeTransfer'
import Transfer_details from './src/page/Assets/secondary/Transfer/TransferDetails'
import Addresses from './src/page/Profile/secondary/Addresses'
import Add_address from './src/page/Profile/secondary/AddAddress'
import Address_information from './src/page/Profile/secondary/AddressInformation'
import Camera from './src/page/Assets/secondary/Camera'
import Validator_Info from './src/page/Staking/secondary/ValidatorInfo'
import Stake from './src/page/Staking/secondary/Stake'
import BondFunds from './src/page/Staking/secondary/BondFunds'
import Unbond from './src/page/Staking/secondary/Unbond'
import BondAdditional from './src/page/Staking/secondary/BondAdditional'
import SetSessionKey from './src/page/Staking/secondary/SetSessionKey'
import Nominate from './src/page/Staking/secondary/Nominate'
import Unstake from './src/page/Staking/secondary/Unstake'
import Unnominate from './src/page/Staking/secondary/Unnominate'
import Change_Password from './src/page/Profile/secondary/Change/ChangePassword'
import Change_Name from './src/page/Profile/secondary/Change/ChangeName'
import Vote from './src/page/Democracy/secondary/Vote'
import Settings from './src/page/Profile/secondary/Settings'
import Set_Node from './src/page/Profile/secondary/Settings/SetNode'
import AccountPicker from './src/components/AccountPicker'
import About from './src/page/Profile/secondary/About'
import Gesture from './src/page/Profile/secondary/Settings/Gesture'
import { setJSExceptionHandler } from './src/util/error_guard'
// 获取store实例 | Get store instance
import AppState from './src/mobx/mobx'
const Polkawallet_App = StackNavigator({
Tabbed_Navigation: {
screen: Tab,
navigationOptions: { header: null }
},
Tabbed_Navigation_Common: {
screen: TabCommon,
navigationOptions: { header: null }
},
Tabbed_Navigation_WithoutUniswap: {
screen: TabWithOutUniswap,
navigationOptions: { header: null }
},
Create_Account: { screen: Create_Account, navigationOptions: { header: null } },
Create_PCX_Account: { screen: CreatePCXAccount, navigationOptions: { header: null } },
AccountPicker: { screen: AccountPicker, navigationOptions: { header: null } },
Backup_Account: { screen: Backup_Account, navigationOptions: { header: null } },
QR_Code: { screen: QR_Code, navigationOptions: { header: null } },
PCX_Transfer_Hash_Detail: { screen: PCX_Transfer_Hash_Detail, navigationOptions: { header: null } },
Coin_details: { screen: Coin_details, navigationOptions: { header: null } },
Coin_PCX_details: { screen: Coin_PCX_details, navigationOptions: { header: null } },
Manage_Account: { screen: Manage_Account, navigationOptions: { header: null } },
Transfer: { screen: Transfer, navigationOptions: { header: null } },
Make_transfer: { screen: Make_transfer, navigationOptions: { header: null } },
Transfer_details: {
screen: Transfer_details,
navigationOptions: { header: null }
},
PCX_transfer: { screen: PCX_transfer, navigationOptions: { header: null } },
Addresses: { screen: Addresses, navigationOptions: { header: null } },
Add_address: { screen: Add_address, navigationOptions: { header: null } },
Address_information: {
screen: Address_information,
navigationOptions: { header: null }
},
Camera: { screen: Camera, navigationOptions: { header: null } },
Validator_Info: { screen: Validator_Info, navigationOptions: { header: null } },
Stake: { screen: Stake, navigationOptions: { header: null } },
BondFunds: { screen: BondFunds, navigationOptions: { header: null } },
Unbond: { screen: Unbond, navigationOptions: { header: null } },
BondAdditional: { screen: BondAdditional, navigationOptions: { header: null } },
SetSessionKey: { screen: SetSessionKey, navigationOptions: { header: null } },
Nominate: { screen: Nominate, navigationOptions: { header: null } },
Unstake: { screen: Unstake, navigationOptions: { header: null } },
Unnominate: { screen: Unnominate, navigationOptions: { header: null } },
Change_Password: { screen: Change_Password, navigationOptions: { header: null } },
Change_Name: { screen: Change_Name, navigationOptions: { header: null } },
Vote: { screen: Vote, navigationOptions: { header: null } },
Settings: { screen: Settings, navigationOptions: { header: null } },
Set_Node: { screen: Set_Node, navigationOptions: { header: null } },
About: { screen: About, navigationOptions: { header: null } },
Gesture: { screen: Gesture, navigationOptions: { header: null } },
MnemonicWord_1: { screen: MnemonicWord_1, navigationOptions: { header: null } },
MnemonicWord_2: { screen: MnemonicWord_2, navigationOptions: { header: null } },
MnemonicWord_3: { screen: MnemonicWord_3, navigationOptions: { header: null } }
})
setJSExceptionHandler(() => {}, true)
export default class Polkawallet extends Component {
render() {
return (
<Provider rootStore={AppState}>
<Polkawallet_App />
</Provider>
)
}
}