This repository has been archived by the owner on Sep 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
App2.js
58 lines (48 loc) · 1.46 KB
/
App2.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import React, { Component } from 'react';
import { StyleSheet, Text, View, Image, ImageBackground, TextInput, Button, TouchableOpacity, TouchableHighlight, AsyncStorage, Alert, Dimensions } from 'react-native';
import {
StackNavigator,
DrawerNavigator,
SwitchNavigator,
//DrawerActions,
} from 'react-navigation';
import Mapa from './mapa/AppMapa';
import Home from './login/AppHome';
import Config from './login/AppConfig'
import Logout from './login/AppLogout';
import Login from './login/AppLogin';
import App from './App';
const MenuDrawer = DrawerNavigator(
{
Mapa: { screen: Mapa },
Usuários: { screen: Home },
Configuração: { screen: Config },
Logout: { screen: Logout},
}
);
const Menu = StackNavigator(
{
DrawerStack: { screen: MenuDrawer },
},
{
headerMode: 'float',
navigationOptions: ({navigation}) => ({
title: 'SmartIF',
headerLeft: <TouchableHighlight onPress={() => navigation.toggleDrawer()}><Image source={require('./menu-icon.png')} style={{margin: 10, width: 30, height: 30}} /></TouchableHighlight>
})
}
);
class App2 extends Component {
constructor(props) {
super(props);
}
render() {
return <Menu />;
}
}
export default App2;