Skip to content

Commit

Permalink
[cli] add EditScreenInfo to drawer + tabs templates
Browse files Browse the repository at this point in the history
  • Loading branch information
danstepanov committed Jan 29, 2024
1 parent 5ee348e commit 9242c21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-trainers-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-expo-stack": patch
---

add EditScreenInfo to drawer + tabs templates
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Page = () => {
<View style={theme.components.container}>
<Text style={theme.components.title}>Home</Text>
<View style={theme.components.separator} />
<EditScreenInfo path="app/(tabs)/index.tsx" />
</View>
);
<% } else if (props.stylingPackage?.name === "nativewind") { %>
Expand All @@ -37,6 +38,7 @@ const Page = () => {
<YStack flex={1} alignItems="center" justifyContent="center">
<H2>Home</H2>
<Separator />
<EditScreenInfo path="app/(tabs)/index.tsx" />
</YStack>
</Theme>
);
Expand All @@ -45,13 +47,15 @@ const Page = () => {
<Box flex={1} alignItems="center" justifyContent="center">
<Text variant="title">Home</Text>
<Box height={1} marginVertical="l_32" width="80%" />
<EditScreenInfo path="app/(tabs)/index.tsx" />
</Box>
);
<% } else { %>
return (
<View style={styles.container}>
<Text style={styles.title}>Home</Text>
<View style={styles.separator} />
<EditScreenInfo path="app/(tabs)/index.tsx" />
</View>
);
<% } %>
Expand Down

0 comments on commit 9242c21

Please sign in to comment.