File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Drawer } from 'expo-router/drawer' ;
22import ColorPalette from '../colors' ;
33import React , { useState } from 'react' ;
4- import { Text } from 'react-native' ;
4+ import { Text , StyleSheet , View } from 'react-native' ;
55
66import {
77 DrawerContentComponentProps ,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
2121 { ! isGenerating ? (
2222 < DrawerItemList { ...otherProps } />
2323 ) : (
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 >
2528 ) }
2629 </ DrawerContentScrollView >
2730 ) ;
@@ -101,10 +104,30 @@ export default function _layout() {
101104 name = "index"
102105 options = { {
103106 drawerLabel : ( ) => null ,
107+ title : 'Main Menu' ,
104108 drawerItemStyle : { display : 'none' } ,
105109 } }
106110 />
107111 </ Drawer >
108112 </ GeneratingContext >
109113 ) ;
110114}
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 11import { Drawer } from 'expo-router/drawer' ;
22import ColorPalette from '../colors' ;
33import React , { useState } from 'react' ;
4- import { Text } from 'react-native' ;
4+ import { Text , StyleSheet , View } from 'react-native' ;
55
66import {
77 DrawerContentComponentProps ,
@@ -21,7 +21,10 @@ function CustomDrawerContent(props: CustomDrawerProps) {
2121 { ! isGenerating ? (
2222 < DrawerItemList { ...otherProps } />
2323 ) : (
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 >
2528 ) }
2629 </ DrawerContentScrollView >
2730 ) ;
@@ -77,10 +80,30 @@ export default function _layout() {
7780 name = "index"
7881 options = { {
7982 drawerLabel : ( ) => null ,
83+ title : 'Main Menu' ,
8084 drawerItemStyle : { display : 'none' } ,
8185 } }
8286 />
8387 </ Drawer >
8488 </ GeneratingContext >
8589 ) ;
8690}
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