-
Notifications
You must be signed in to change notification settings - Fork 0
/
app1.js
131 lines (118 loc) · 2.54 KB
/
app1.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
128
129
130
131
import React from 'react';
import {
Platform,
ScrollView,
StatusBar,
StyleSheet,
View,Button,Text,TouchableOpacity
} from 'react-native';
import Row from './examples/Simple/app/Row';
import {Appp} from "./home";
import {createAppContainer, CreateNavigatorConfig as defaultNavigationOptions,} from 'react-navigation';
import {createBottomTabNavigator, createMaterialTopTabNavigator, } from 'react-navigation-tabs';
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 0;
import { createDrawerNavigator } from 'react-navigation-drawer';
import {createStackNavigator} from "react-navigation-stack";
import Icon from "@material-ui/core/Icon";
import TabHelper from "./TabHelper";
const styles = StyleSheet.create({
container: {
flex: 1,
},
scrollView: {
backgroundColor: '#4A637D',
flex: 1,
padding: 10,
paddingTop: STATUSBAR_HEIGHT,
},
});
export default class Apps extends React.Component{
static navigationOptions = ({ navigation }) => ({
title: "CPU",
headerLeft: (
<TouchableOpacity
onPress={() => navigation.openDrawer()}>
<Icon name="bars" size={20} />
</TouchableOpacity>
),
})
constructor()
{
super()
}
render() {
return(
<View style={styles.container}>
<StatusBar
barStyle="light-content"
/>
<ScrollView
style={styles.scrollView}
>
<Row zIndex={100} />
<Row zIndex={90} />
<Row zIndex={80} />
<Row zIndex={70} />
</ScrollView>
<TabHelper/>
</View>
)
}
}
//
//
// const HomeScreenNavigator = createMaterialTopTabNavigator({
//
// Home: {
// screen: Apps,
// },
//
//
// Settings: {
// screen: Appp
// },
// },
// {
// initialRouteName: "Home"
// }
//
// );
//
// const HomeScreenNavigator1 = createMaterialTopTabNavigator({
//
//
//
// Home: {
// screen: Apps,
// },
//
//
// Settings: {
// screen: Appp,
//
// },
//
//
// },
// {
// initialRouteName: "Settings"
// }
// );
// const AppNavigator = createDrawerNavigator({
//
//
//
//
// Home: {
//
//
// screen: HomeScreenNavigator,
//
// },
// Products: {
// screen: HomeScreenNavigator1
// },
//
// },
// );
// export default createAppContainer(AppNavigator)