File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' create-expo-stack ' : patch
3
+ ---
4
+
5
+ change default blank nativewindui template to use a stack navigator, instead of drawer+tabs
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ const command: GluegunCommand = {
234
234
name : 'expo-router' ,
235
235
type : 'navigation' ,
236
236
options : {
237
- type : 'drawer + tabs '
237
+ type : 'stack '
238
238
}
239
239
} ) ;
240
240
} else if ( options . tamagui ) {
@@ -325,6 +325,12 @@ const command: GluegunCommand = {
325
325
if ( cliResults . packages [ 0 ] . options . selectedComponents . length === 0 ) {
326
326
script += '--blank ' ;
327
327
}
328
+ // add --tabs or --drawer+tabs if navigation package is selected
329
+ if ( cliResults . packages [ 1 ] . options . type === 'tabs' ) {
330
+ script += '--tabs ' ;
331
+ } else if ( cliResults . packages [ 1 ] . options . type === 'drawer + tabs' ) {
332
+ script += '--drawer+tabs ' ;
333
+ }
328
334
} else {
329
335
// Add the packages
330
336
cliResults . packages . forEach ( ( p ) => {
You can’t perform that action at this time.
0 commit comments