Skip to content

Commit

Permalink
[cli] change default blank nativewindui template to use a stack navig…
Browse files Browse the repository at this point in the history
…ator, instead of drawer+tabs
  • Loading branch information
danstepanov committed Jul 6, 2024
1 parent 676510c commit 19d1caf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-beers-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-expo-stack': patch
---

change default blank nativewindui template to use a stack navigator, instead of drawer+tabs
Binary file modified bun.lockb
Binary file not shown.
8 changes: 7 additions & 1 deletion cli/src/commands/create-expo-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const command: GluegunCommand = {
name: 'expo-router',
type: 'navigation',
options: {
type: 'drawer + tabs'
type: 'stack'
}
});
} else if (options.tamagui) {
Expand Down Expand Up @@ -325,6 +325,12 @@ const command: GluegunCommand = {
if (cliResults.packages[0].options.selectedComponents.length === 0) {
script += '--blank ';
}
// add --tabs or --drawer+tabs if navigation package is selected
if (cliResults.packages[1].options.type === 'tabs') {
script += '--tabs ';
} else if (cliResults.packages[1].options.type === 'drawer + tabs') {
script += '--drawer+tabs ';
}
} else {
// Add the packages
cliResults.packages.forEach((p) => {
Expand Down

0 comments on commit 19d1caf

Please sign in to comment.