-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
67 lines (61 loc) · 1.49 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
import React from 'react';
import {styles,colors} from './Styles';
import LoginScreen from './views/LoginScreen';
import ListOrdersScreen from './views/ListOrdersScreen';
import OrderDetailsScreen from './views/OrderDetailsScreen';
import HistoryScreen from './views/HistoryScreen';
import CalculatorScreen from './views/CalculatorScreen';
import {View, Text, Platform, StatusBar} from 'react-native';
import Tabs from 'react-native-tabs';
import {StackNavigator, TabNavigator} from 'react-navigation';
const OrderNavi = StackNavigator({
Orders: {
screen: ListOrdersScreen,
navigationOptions: {
title: 'Παραγγελίες',
}
},
OrderDetails: { screen: OrderDetailsScreen }
},{
headerMode : 'float'
});
const HomeStack = TabNavigator({
OrdersStack: { screen: OrderNavi },
Calculator: { screen: CalculatorScreen }
}
, {
tabBarPosition: 'bottom',
animationEnabled: true,
tabBarOptions: {
activeTintColor: colors.white,
style: {
backgroundColor: colors.secondary,
}
}
});
const RootNavi = StackNavigator({
Login : {
screen : LoginScreen
},
HomeStack : {
screen : HomeStack
}
}, {
headerMode : 'none',
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 0 : StatusBar.currentHeight,
backgroundColor : '#000'
}
});
class App extends React.Component {
constructor(props){
super(props);
this.state = {page:'second'};
}
render() {
return (
<RootNavi styles={styles.mainContainer}/>
);
}
}
export default App;