@@ -57,48 +57,68 @@ export const MenuDrawer = ({ navigation }: DrawerContentComponentProps) => {
5757 }
5858
5959 return (
60- < SafeAreaView style = { [ styles . container , { backgroundColor : white } ] } >
61- < View style = { styles . userRow } >
62- < Image
63- source = { {
64- uri : chatClient . user ?. image ,
65- } }
66- style = { styles . avatar }
67- />
68- < Text
69- style = { [
70- styles . userName ,
71- {
72- color : black ,
73- } ,
74- ] }
75- >
76- { chatClient . user ?. name }
77- </ Text >
78- </ View >
79- < View style = { styles . menuContainer } >
80- < View >
81- < TouchableOpacity
82- onPress = { ( ) => navigation . navigate ( 'NewDirectMessagingScreen' ) }
83- style = { styles . menuItem }
60+ < View style = { [ styles . container , { backgroundColor : white } ] } >
61+ < SafeAreaView style = { { flex : 1 } } >
62+ < View style = { [ styles . userRow ] } >
63+ < Image
64+ source = { {
65+ uri : chatClient . user ?. image ,
66+ } }
67+ style = { styles . avatar }
68+ />
69+ < Text
70+ style = { [
71+ styles . userName ,
72+ {
73+ color : black ,
74+ } ,
75+ ] }
8476 >
85- < Edit height = { 24 } pathFill = { grey } width = { 24 } />
86- < Text
87- style = { [
88- styles . menuTitle ,
89- {
90- color : black ,
91- } ,
92- ] }
77+ { chatClient . user ?. name }
78+ </ Text >
79+ </ View >
80+ < View style = { styles . menuContainer } >
81+ < View >
82+ < TouchableOpacity
83+ onPress = { ( ) => navigation . navigate ( 'NewDirectMessagingScreen' ) }
84+ style = { styles . menuItem }
9385 >
94- New Direct Messages
95- </ Text >
96- </ TouchableOpacity >
86+ < Edit height = { 24 } pathFill = { grey } width = { 24 } />
87+ < Text
88+ style = { [
89+ styles . menuTitle ,
90+ {
91+ color : black ,
92+ } ,
93+ ] }
94+ >
95+ New Direct Messages
96+ </ Text >
97+ </ TouchableOpacity >
98+ < TouchableOpacity
99+ onPress = { ( ) => navigation . navigate ( 'NewGroupChannelAddMemberScreen' ) }
100+ style = { styles . menuItem }
101+ >
102+ < Group height = { 24 } pathFill = { grey } width = { 24 } />
103+ < Text
104+ style = { [
105+ styles . menuTitle ,
106+ {
107+ color : black ,
108+ } ,
109+ ] }
110+ >
111+ New Group
112+ </ Text >
113+ </ TouchableOpacity >
114+ </ View >
97115 < TouchableOpacity
98- onPress = { ( ) => navigation . navigate ( 'NewGroupChannelAddMemberScreen' ) }
116+ onPress = { ( ) => {
117+ logout ( ) ;
118+ } }
99119 style = { styles . menuItem }
100120 >
101- < Group height = { 24 } pathFill = { grey } width = { 24 } />
121+ < User height = { 24 } pathFill = { grey } width = { 24 } />
102122 < Text
103123 style = { [
104124 styles . menuTitle ,
@@ -107,29 +127,11 @@ export const MenuDrawer = ({ navigation }: DrawerContentComponentProps) => {
107127 } ,
108128 ] }
109129 >
110- New Group
130+ Sign Out
111131 </ Text >
112132 </ TouchableOpacity >
113133 </ View >
114- < TouchableOpacity
115- onPress = { ( ) => {
116- logout ( ) ;
117- } }
118- style = { styles . menuItem }
119- >
120- < User height = { 24 } pathFill = { grey } width = { 24 } />
121- < Text
122- style = { [
123- styles . menuTitle ,
124- {
125- color : black ,
126- } ,
127- ] }
128- >
129- Sign Out
130- </ Text >
131- </ TouchableOpacity >
132- </ View >
133- </ SafeAreaView >
134+ </ SafeAreaView >
135+ </ View >
134136 ) ;
135137} ;
0 commit comments