File tree Expand file tree Collapse file tree 2 files changed +50
-4
lines changed Expand file tree Collapse file tree 2 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Drawer } from 'expo-router/drawer' ;
2
2
import ColorPalette from '../colors' ;
3
3
import React , { useState } from 'react' ;
4
- import { Text } from 'react-native' ;
4
+ import { Text , StyleSheet , View } from 'react-native' ;
5
5
6
6
import {
7
7
DrawerContentComponentProps ,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
21
21
{ ! isGenerating ? (
22
22
< DrawerItemList { ...otherProps } />
23
23
) : (
24
- < Text > Model is generating. Interrupt before switching model</ Text >
24
+ < View style = { styles . centerContent } >
25
+ < Text style = { styles . mainText } > Model is generating...</ Text >
26
+ < Text style = { styles . subText } > Interrupt before switching model</ Text >
27
+ </ View >
25
28
) }
26
29
</ DrawerContentScrollView >
27
30
) ;
@@ -101,10 +104,30 @@ export default function _layout() {
101
104
name = "index"
102
105
options = { {
103
106
drawerLabel : ( ) => null ,
107
+ title : 'Main Menu' ,
104
108
drawerItemStyle : { display : 'none' } ,
105
109
} }
106
110
/>
107
111
</ Drawer >
108
112
</ GeneratingContext >
109
113
) ;
110
114
}
115
+
116
+ const styles = StyleSheet . create ( {
117
+ centerContent : {
118
+ flex : 1 ,
119
+ justifyContent : 'center' ,
120
+ alignItems : 'center' ,
121
+ padding : 20 ,
122
+ } ,
123
+ mainText : {
124
+ fontSize : 18 ,
125
+ fontWeight : 'bold' ,
126
+ marginBottom : 10 ,
127
+ color : ColorPalette . primary ,
128
+ } ,
129
+ subText : {
130
+ fontSize : 14 ,
131
+ color : ColorPalette . strongPrimary ,
132
+ } ,
133
+ } ) ;
Original file line number Diff line number Diff line change 1
1
import { Drawer } from 'expo-router/drawer' ;
2
2
import ColorPalette from '../colors' ;
3
3
import React , { useState } from 'react' ;
4
- import { Text } from 'react-native' ;
4
+ import { Text , StyleSheet , View } from 'react-native' ;
5
5
6
6
import {
7
7
DrawerContentComponentProps ,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
21
21
{ ! isGenerating ? (
22
22
< DrawerItemList { ...otherProps } />
23
23
) : (
24
- < Text > Model is generating. Interrupt before switching model</ Text >
24
+ < View style = { styles . centerContent } >
25
+ < Text style = { styles . mainText } > Model is generating...</ Text >
26
+ < Text style = { styles . subText } > Interrupt before switching model</ Text >
27
+ </ View >
25
28
) }
26
29
</ DrawerContentScrollView >
27
30
) ;
@@ -77,10 +80,30 @@ export default function _layout() {
77
80
name = "index"
78
81
options = { {
79
82
drawerLabel : ( ) => null ,
83
+ title : 'Main Menu' ,
80
84
drawerItemStyle : { display : 'none' } ,
81
85
} }
82
86
/>
83
87
</ Drawer >
84
88
</ GeneratingContext >
85
89
) ;
86
90
}
91
+
92
+ const styles = StyleSheet . create ( {
93
+ centerContent : {
94
+ flex : 1 ,
95
+ justifyContent : 'center' ,
96
+ alignItems : 'center' ,
97
+ padding : 20 ,
98
+ } ,
99
+ mainText : {
100
+ fontSize : 18 ,
101
+ fontWeight : 'bold' ,
102
+ marginBottom : 10 ,
103
+ color : ColorPalette . primary ,
104
+ } ,
105
+ subText : {
106
+ fontSize : 14 ,
107
+ color : ColorPalette . strongPrimary ,
108
+ } ,
109
+ } ) ;
You can’t perform that action at this time.
0 commit comments