breaking: Bundle iOS and Android as core platforms - #2817
Merged
thymikee merged 1 commit intoSep 25, 2026
Merged
Conversation
This was referenced Jun 26, 2026
Merged
huntie
force-pushed
the
cli-core-platform-plugins
branch
from
September 24, 2026 13:15
e4ec71b to
7c0d159
Compare
huntie
force-pushed
the
cli-core-platform-plugins
branch
from
September 24, 2026 14:08
7c0d159 to
d8d1570
Compare
huntie
marked this pull request as ready for review
September 24, 2026 14:09
Collaborator
Author
|
@thymikee Ready for review, pending the corresponding changes in core. Aim to land this for the 0.89 cycle (NOTE: CLI should already have branched on 0.88 so this is to |
thymikee
approved these changes
Sep 24, 2026
thymikee
left a comment
Member
There was a problem hiding this comment.
Let's explicitly note what's breaking, because it's about observable behavior rather than APIs
huntie
force-pushed
the
cli-core-platform-plugins
branch
from
September 25, 2026 12:33
d8d1570 to
3a1aed0
Compare
huntie
force-pushed
the
cli-core-platform-plugins
branch
from
September 25, 2026 12:35
3a1aed0 to
9e89990
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bundle
cli-platform-androidandcli-platform-iosin the main@react-native-community/clipackage.Relates to this proposed change: react-native-community/template#235
Motivation
Simplify Community CLI setup for users (see above). iOS and Android are first-class RN platforms.
Notes
loadConfigandloadConfigAsyncgain an optional platforms argument that seeds the config. Project and dependency configs still layer on top and can override it, and the--platformfilter is honoured.react-nativeis never linked as a dependency. It stayed out of autolinking only because its ownreact-native.config.jsdeclaredplatforms, which the paired React Native change deletes.start,bundle,codegen, orspmwithout@react-native/community-cli-plugininstalled exits with an error naming the package to add, rather than Commander's bareunknown command.Changelog
run-iosandrun-android) are always available. Projects no longer need@react-native-community/cli-platform-iosor@react-native-community/cli-platform-android.startandbundlecome from@react-native/community-cli-plugin— which must be added to your project'sdevDependencies.Test Plan
Linked this branch into a template-shaped app:
react-native.config.jsin the projectreact-nativeis a local checkout of the paired React Native change, which deletesreact-native.config.jsfrom the package@react-native/community-cli-pluginindevDependenciesregistersbundle,start,spm, andcodegenBuilt-in platforms (this PR)
@react-native-community/cli-platform-iosresolves from the CLI's own dependencies, not the projectconfigregistersiosandandroid, andreact-nativeis not autolinked as a dependencyHelloWorld.xcworkspaceandcom.helloworldrun-ios,build-ios,log-ios,run-android,build-android, andlog-androidare availableconfig --platform iosnarrows platforms toiosMissing
@react-native/community-cli-plugin— user warning (plugin removed from the same app)npx react-native startexits 1 with an error naming the package to add__e2e__/unknown.test.tsRNTester and HelloWorld (paired React Native change, this build linked into the monorepo)
configregistersiosandandroidand resolves each app's project, with no platform config of their ownreact-nativeis absent fromconfigdependencies, the input CocoaPods and SPM autolinking read (SPM setup not rerun locally)react-native bundle --platform ioscompletes for RNTesterChecklist
react-nativecheckout (instructions).