Skip to content

Commit 19d1caf

Browse files
committed
[cli] change default blank nativewindui template to use a stack navigator, instead of drawer+tabs
1 parent 676510c commit 19d1caf

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.changeset/funny-beers-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-expo-stack': patch
3+
---
4+
5+
change default blank nativewindui template to use a stack navigator, instead of drawer+tabs

bun.lockb

4.82 KB
Binary file not shown.

cli/src/commands/create-expo-stack.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const command: GluegunCommand = {
234234
name: 'expo-router',
235235
type: 'navigation',
236236
options: {
237-
type: 'drawer + tabs'
237+
type: 'stack'
238238
}
239239
});
240240
} else if (options.tamagui) {
@@ -325,6 +325,12 @@ const command: GluegunCommand = {
325325
if (cliResults.packages[0].options.selectedComponents.length === 0) {
326326
script += '--blank ';
327327
}
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+
}
328334
} else {
329335
// Add the packages
330336
cliResults.packages.forEach((p) => {

0 commit comments

Comments
 (0)