Skip to content

Remove Community CLI platform config (upstreamed) (2/2) - #58671

Open
huntie wants to merge 1 commit into
react:mainfrom
huntie:remove-community-cli-platform-config
Open

huntie wants to merge 1 commit into
react:mainfrom
huntie:remove-community-cli-platform-config

Conversation

@huntie

@huntie huntie commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Replaces #57353.

Follows #58670. Depends on react-native-community/cli#2817. See also react-native-community/template#235 and react-native-community/template#254, which moves the template to CLI 21.0.0-alpha.1 (the template-app CI jobs here stay red until it lands).

Deletes the react-native.config.js file we ship with react-native. The iOS and Android Community CLI platforms are moving back to being included by default (and in the first place, should not have been wired up here!), and all commands are self-registered by @react-native/community-cli-plugin.

RNTester moves to @react-native-community/cli 21.0.0-alpha.1, which includes the iOS and Android platforms, and drops its cli-platform-ios and cli-platform-android devDependencies. HelloWorld gains the same CLI devDependency: its Gradle autolinking runs npx @react-native-community/cli config after an npm install in the app, which otherwise fetches the latest (20.x) CLI.

Changelog:
[General][Changed] - Platform registration config for the Community CLI is removed from the react-native package. No breaking change with @react-native-community/cli 21.x (required).

Test Plan

With @react-native-community/cli 21.0.0-alpha.1 installed in the monorepo.

RNTester, HelloWorld, and a template-shaped app (no react-native.config.js anywhere)

  • ✅ react-native config registers ios and android and resolves each project: RNTesterPods.xcworkspace / com.facebook.react.uiapp, HelloWorld.xcworkspace / com.helloworld
  • ✅ react-native is absent from config dependencies
  • ✅ bundle, start, spm, and codegen are registered by @react-native/community-cli-plugin
  • ✅ react-native bundle --platform ios --dev false completes for RNTester

Screenshots of the template-shaped app are in the react-native-community/cli#2817 test plan.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2026
@huntie
huntie force-pushed the remove-community-cli-platform-config branch from 9b9a022 to aa9dde6 Compare September 24, 2026 14:13
@huntie
huntie marked this pull request as ready for review September 24, 2026 14:18
@huntie huntie changed the title Remove Community CLI platform config (upstreamed) Remove Community CLI platform config (upstreamed) (2/2) Sep 24, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Sep 24, 2026
@huntie
huntie force-pushed the remove-community-cli-platform-config branch 2 times, most recently from d6921c7 to c98e0c3 Compare September 25, 2026 12:52

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huntie CI is red red :'(

@huntie
huntie force-pushed the remove-community-cli-platform-config branch from c98e0c3 to cf53901 Compare September 29, 2026 14:16
@huntie

huntie commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Will require an alpha of Community CLI 21.x, incoming 🚧.

@huntie
huntie force-pushed the remove-community-cli-platform-config branch 3 times, most recently from eb890d2 to 2525351 Compare September 30, 2026 13:58
@huntie

huntie commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator Author

@cortinico Ready to import

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants