Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/nativewind-home-layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-expo-stack': patch
'rn-new': patch
---

Fix Nativewind template layout: inset the Show Details button from the screen edges and constrain EditScreenInfo so its description text wraps instead of clipping.
6 changes: 6 additions & 0 deletions .changeset/rerun-hint-quoting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'create-expo-stack': patch
'rn-new': patch
---

Only quote the project name in the rerun hint when it contains characters that need shell quoting.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Home() {
<% if (props.stylingPackage?.name === "nativewind") { %>
const styles = {
container: "flex flex-1 p-safe bg-white",
buttonWrapper: "w-full pb-safe",
buttonWrapper: "w-full px-6 pb-safe",
};
<% } else if (props.stylingPackage?.name === "stylesheet") { %>
const styles = StyleSheet.create({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const EditScreenInfo: React.FC<EditScreenInfoProps> = ({ path }) => {
const description = "Change any of the text, save the file, and your app will automatically update."
<% } %>
return (
<View>
<View className={styles.container}>
<View className={styles.getStartedContainer}>
<Text className={styles.getStartedText}>{title}</Text>
<View className={`${styles.codeHighlightContainer} ${styles.homeScreenFilename}`}>
Expand All @@ -34,6 +34,7 @@ export const EditScreenInfo: React.FC<EditScreenInfoProps> = ({ path }) => {
};

const styles = {
container: `w-full`,
codeHighlightContainer: `rounded-md px-1`,
getStartedContainer: `items-center mx-12`,
getStartedText: `text-lg leading-6 text-center`,
Expand Down
5 changes: 5 additions & 0 deletions cli/src/utilities/systemCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ type STDIO = 'inherit' | 'ignore' | 'pipe' | 'overlapped';
export const ONLY_ERRORS = ['ignore', 'ignore', 'inherit'] as const;

export function quoteShellArg(value: string): string {
// Values made of safe characters don't need quoting on any platform
if (/^[A-Za-z0-9._-]+$/.test(value)) {
return value;
}

if (process.platform === 'win32') {
return `"${value.replace(/"/g, '""')}"`;
}
Expand Down
Loading