-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomDrawerBodytec.js
43 lines (41 loc) · 1.1 KB
/
CustomDrawerBodytec.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
import { DrawerItems, SafeAreaView } from 'react-navigation';
import React from 'react';
import { StyleSheet, ScrollView, Image, Text, View } from 'react-native';
import { style } from 'expo/src/Font';
export default CustomDrawer = (props) => (
<ScrollView style={styles.scrollView}>
<View style={styles.logoWrapper}>
<Image source={require('./assets/logo.png')} style={styles.logo}/>
</View>
<SafeAreaView style={styles.container} forceInset={{ top: 'always', horizontal: 'never' }}>
<DrawerItems {...props}
labelStyle = {styles.label}
itemStyle = {{justifyContent: 'flex-end'}}
activeTintColor='#ffffff'
inactiveTintColor='#525252'
activeBackgroundColor='#0584f7' />
</SafeAreaView>
</ScrollView>
);
const styles = StyleSheet.create({
scrollView: {
marginTop: 40
},
logoWrapper: {
borderBottomWidth: 0.5,
borderBottomColor: '#d6d7da',
padding: 40
},
logo: {
alignSelf: "center",
width: 250,
height: 43,
},
container: {
flex: 1,
},
label: {
fontFamily: 'NeoSansArabic',
fontWeight: 'normal',
}
});