package.json + template.config.js + dependency on @react-native-community/cli #7
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.
Background
This is part of work to remove the dependency on the

@react-native-community/cli-platform-ios/native_modules.rb
in thereact-native
package. What we want is this:To do this, we have to split apart
native-modules.rb
into:link_native_modules!
(a platform concern of injecting PodSpecs into the Xcode workplace build), andlist_native_modules!
(module discover is a framework concern. For example the community template depends on config's, whereas something like Expo has gone another route)The impact of this change means that the template now has to explicitly depend on https://npmjs.com/package/@react-native-community/cli which transitively includes both platform specific dependencies:
Changes used
Here's the old and new dependency graph:
