forked from polkawallet-io/polkawallet-RN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
83 lines (72 loc) · 3.9 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
import React, { Component } from 'react';
import {
View,
StyleSheet
} from 'react-native';
import {StackNavigator} from 'react-navigation'
import Tabbed_Navigation from './src/code/Tabbed_Navigation.js'
import Create_Account from './src/code/Assets/secondary/Create_Account'
import Backup_Account from './src/code/Assets/secondary/Backup_Account'
import QR_Code from './src/code/Assets/secondary/QR_Code'
import Coin_details from './src/code/Assets/secondary/coin_details'
import Manage_Account from './src/code/Profile/secondary/Manage_Account'
import Transfer from './src/code/Assets/secondary/Transfer/transfer'
import Make_transfer from './src/code/Assets/secondary/Transfer/make_transfer'
import Transfer_details from './src/code/Assets/secondary/Transfer/Transfer_details'
import Addresses from './src/code/Profile/secondary/Addresses'
import Add_address from './src/code/Profile/secondary/add_address'
import Address_information from './src/code/Profile/secondary/address_information'
import Camera from './src/code/Assets/secondary/camera'
import Validator_Info from './src/code/Staking/secondary/Validator_Info'
import Stake from './src/code/Staking/secondary/stake'
import Nominate from './src/code/Staking/secondary/nominate'
import Unstake from './src/code/Staking/secondary/unstake'
import Unnominate from './src/code/Staking/secondary/unnominate'
import Preferences from './src/code/Staking/secondary/preferences'
import Change_Password from './src/code/Profile/secondary/Change/Change_Password'
import Change_Name from './src/code/Profile/secondary/Change/Change_Name'
import NayorAye from './src/code/Democracy/secondary/NayorAye'
import Settings from './src/code/Profile/secondary/Settings'
import Set_Node from './src/code/Profile/secondary/Settings/Set_Node'
import About from './src/code/Profile/secondary/About'
import Gesture from './src/code/Profile/secondary/Settings/Gesture'
import {Provider} from 'mobx-react'
//获取store实例
import AppState from './src/mobx/mobx'
const Polkawallet_App = StackNavigator({
Tabbed_Navigation:{screen:Tabbed_Navigation,navigationOptions:{header:null}},
Create_Account:{screen:Create_Account,navigationOptions:{header:null}},
Backup_Account:{screen:Backup_Account,navigationOptions:{header:null}},
QR_Code:{screen:QR_Code,navigationOptions:{header:null}},
Coin_details:{screen:Coin_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}},
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}},
Nominate:{screen:Nominate,navigationOptions:{header:null}},
Unstake:{screen:Unstake,navigationOptions:{header:null}},
Unnominate:{screen:Unnominate,navigationOptions:{header:null}},
Preferences:{screen:Preferences,navigationOptions:{header:null}},
Change_Password:{screen:Change_Password,navigationOptions:{header:null}},
Change_Name:{screen:Change_Name,navigationOptions:{header:null}},
NayorAye:{screen:NayorAye,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}},
})
export default class Polkawallet extends Component {
render() {
return (
<Provider rootStore={AppState}>
<Polkawallet_App/>
</Provider>
);
}
}