-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.android.js
More file actions
45 lines (42 loc) · 1.28 KB
/
Copy pathindex.android.js
File metadata and controls
45 lines (42 loc) · 1.28 KB
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
DrawerLayoutAndroid,
StyleSheet,
Text,
View,
} from 'react-native';
// uicomponents and styles
import styles from "./stylesheets/mainstyle.js"
import HeaderComponent from "./uicomponents/header.js"
import DrawerNavigationView from "./uicomponents/drawer"
class interviewkeeda extends Component {
render() {
const navigationView = (
<View style={[styles.container, {backgroundColor: '#fff'}]}>
<DrawerNavigationView />
</View>
);
return (
<DrawerLayoutAndroid ref={(drawer) => { return this.drawer = drawer }}
drawerWidth={300}
drawerPosition={DrawerLayoutAndroid.positions.Left}
renderNavigationView={() => navigationView}>
<View style={styles.container}>
<HeaderComponent indexThis={this}/>
<View style={styles.mainContent} >
<Text>
Sample android app with navigation drawer.
</Text>
</View>
</View>
</DrawerLayoutAndroid>
);
}
}
AppRegistry.registerComponent('interviewkeeda', () => interviewkeeda);