Skip to content

Commit

Permalink
fix: issue calling init from 0.75.0-rc.1 release
Browse files Browse the repository at this point in the history
When users call the cli through react-native (a deprecated path), it
hard-codes the platform name to 'react-native'. This is an error, and
doing this bypasses all template selection logic.

This excludes setting the platform name to 'react-native', which is
assumed.
  • Loading branch information
blakef committed Jun 25, 2024
1 parent 28b4f6c commit 4f95208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ async function createTemplateUri(
options: Options,
version: string,
): Promise<string> {
if (options.platformName) {
if (options.platformName && options.platformName !== 'react-native') {
logger.debug('User has specified an out-of-tree platform, using it');
return `${options.platformName}@${version}`;
}
Expand Down

0 comments on commit 4f95208

Please sign in to comment.