Skip to content

Commit 87f32b8

Browse files
authored
feat(crnl): pass --template blank to create-expo-app (#558)
### Summary With [Expo SDK 51](https://expo.dev/changelog/2024/05-07-sdk-51), [Expo has changed their default app template](https://expo.dev/changelog/2024/05-07-sdk-51#new-default-project-template-and-getting-started-flow). This PR passes the `--template blank` param to `create-expo-app` so we can use a bare template. This also fixes [some of the CI issues we've been having](https://github.com/callstack/react-native-builder-bob/actions/runs/9227626360/job/25389966834?pr=551) ### Test plan 1. Create a new library and select `Javascript` as the library language 2. Make sure the generated library's `example/package.json` doesn't include `expo-router` as a dependency (`expo-router` is a dependency that comes with the new default app template). 3. Run `yarn lint` and make sure it passes.
1 parent c7dfe9e commit 87f32b8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/create-react-native-library/src/utils/generateExampleApp.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@ export default async function generateExampleApp({
7777
'--skip-install',
7878
'--npm',
7979
]
80-
: // `npx create-expo-app example --no-install`
81-
['create-expo-app@latest', directory, '--no-install'];
80+
: // `npx create-expo-app example --no-install --template blank`
81+
[
82+
'create-expo-app@latest',
83+
directory,
84+
'--no-install',
85+
'--template',
86+
'blank',
87+
];
8288

8389
await spawn('npx', args, {
8490
cwd: dest,

0 commit comments

Comments
 (0)