Skip to content

[0.73] react-native.config.js is displayed in the upgrade helper #2202

@rickhanlonii

Description

@rickhanlonii

Description

I was upgrading my app from 72 to 73 and reviewing the Upgrade Helper changes, and I saw a new file react-native.config.js:

Screenshot 2023-12-11 at 5 48 43 PM

I looked in the react-native repo, but this file isn't in the template. So I looked in the CLI and found the change that includes this comment:

/*
Starting from 0.73, react-native.config.js is created by CLI during the init process.
It contains automaticPodsInstallation flag set to true by default.
This flag is used by CLI to determine whether to install CocoaPods dependencies when running ios commands or not.
It's created by CLI rather than being a part of a template to avoid displaying this file in the Upgrade Helper,
as it might bring confusion for existing projects where this change might not be applicable.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
*/

So the intention was to not check-in the file to the template, so the helper didn't include it. But for some reason, the helper does include it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions