Skip to content

Commit d53582d

Browse files
authored
fix: issue calling init from 0.75.0-rc.1 release (#2436)
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.
1 parent 28b4f6c commit d53582d

File tree

1 file changed

+1
-1
lines changed
  • packages/cli/src/commands/init

1 file changed

+1
-1
lines changed

packages/cli/src/commands/init/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ async function createTemplateUri(
400400
options: Options,
401401
version: string,
402402
): Promise<string> {
403-
if (options.platformName) {
403+
if (options.platformName && options.platformName !== 'react-native') {
404404
logger.debug('User has specified an out-of-tree platform, using it');
405405
return `${options.platformName}@${version}`;
406406
}

0 commit comments

Comments
 (0)