-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
76 lines (69 loc) · 1.74 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
import React, { Component } from 'react';
import {
View,
} from 'react-native';
//第三方组件
import { StackNavigator } from 'react-navigation';
import FontIcon from 'react-native-vector-icons/FontAwesome';
//路由
import MainPages from './app/mainPage';
import NewsDetailNav from './app/news/newsDetailNav';
import OrderDetail from './app/orders/detail';
import Button from './common/button';
import GearNav from './app/account/gear/gear';
import OrderStatus from './app/orders/orderstatus/orderStatus';
import Header from './common/header';
import Font from './common/normSize';
import Inquire from './app/orders/inquire';
import AccountMain from './app/account/main/main';
const Nav = StackNavigator({
MainPageScreen: {
screen: MainPages,
},
NewsDetailNavScreen: {
screen: NewsDetailNav
},
OrderDetail: {
screen: OrderDetail
},
OrderStatusScreen: {
screen: OrderStatus,
navigationOptions: ({ navigation }) => ({
header: (<Header title="订单状态" leftIcon={<FontIcon name="angle-left" size={Font(25)} color="#fff"/>} leftHandle={() => {
navigation.goBack();
}}/>),
})
},
GearScreen: {
screen: GearNav,
},
InquireScreen: {
screen: Inquire,
},
AccountMainScreen: {
screen: AccountMain
}
}, {
headerMode: 'screen',
navigationOptions: {
headerTitleStyle: { fontSize: Font(17) },
headerTintColor: '#fff',
headerStyle: { backgroundColor: '#00d7a7', shadowOpacity: 0 },
header: null,
}
});
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
}
}
componentDidMount() {
}
render() {
return (
<Nav screenProps={this.props.navigation} />
);
}
}
// export default Nav;