-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
38 lines (34 loc) · 882 Bytes
/
App.js
File metadata and controls
38 lines (34 loc) · 882 Bytes
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
import React, {Component} from 'react';
import {StyleSheet, Text, View} from 'react-native';
import {createAppContainer} from "react-navigation";
import {createDrawerNavigator} from "react-navigation-drawer";
class HomeScreen extends Component {
render = () => <View style={styles.home}><Text style={styles.homeText}>Drag me --></Text></View>
}
export default createAppContainer(
createDrawerNavigator({
HomeScreen: HomeScreen,
},
{
drawerType: 'slide',
overlayColor: 'transparent',
style: {backgroundColor: 'purple'},
edgeWidth: 200,
},
{
initialRouteName: 'HomeScreen',
})
);
const styles = StyleSheet.create({
home: {
flex: 1,
backgroundColor: 'purple',
alignSelf: 'stretch',
justifyContent: 'center',
alignContent: 'center',
},
homeText: {
color: 'white',
marginLeft: 10,
}
});