-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomSidebarMenu.js
More file actions
46 lines (42 loc) · 1.07 KB
/
CustomSidebarMenu.js
File metadata and controls
46 lines (42 loc) · 1.07 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
46
import {
DrawerContentScrollView,
DrawerItemList,
} from '@react-navigation/drawer';
import React from 'react';
import {
Image,
ScrollView, StyleSheet,
TextInput,
} from 'react-native';
import { SearchBar } from 'react-native-elements';
const styles = StyleSheet.create({
sideMenuProfileIcon: {
marginTop: 40,
resizeMode: 'center',
width: 100,
height: 100,
borderRadius: 100 / 2,
alignSelf: 'center',
},
});
const CustomSidebarMenu = (props) => {
const BASE_PATH = 'https://raw.githubusercontent.com/AboutReact/sampleresource/master/';
const proileImage = 'react_logo.png';
return (
<ScrollView
contentContainerStyle={{ flexGrow: 1 }}
keyboardShouldPersistTaps="never"
>
<Image
source={{ uri: BASE_PATH + proileImage }}
style={styles.sideMenuProfileIcon}
/>
<SearchBar />
<DrawerContentScrollView {...props}>
<DrawerItemList {...props} />
</DrawerContentScrollView>
<TextInput keyboardType="numeric" />
</ScrollView>
);
};
export default CustomSidebarMenu;