Skip to content

Navigation Menu

Sign in
Sign up

fix(config): apply nested project defaults - #2828

Open
huytdps13400 wants to merge 1 commit into
react-native-community:main from
huytdps13400:fix/2825-automatic-pods-default
Open

fix(config): apply nested project defaults #2828
huytdps13400 wants to merge 1 commit into
react-native-community:main from
huytdps13400:fix/2825-automatic-pods-default

Conversation

@huytdps13400

@huytdps13400 huytdps13400 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • let Joi synthesize missing iOS and Android project objects so their nested defaults are applied
  • restore the documented automaticPodsInstallation: true behavior when project.ios is omitted while preserving an explicit false
  • update the stale documentation claim that init creates react-native.config.js

Fixes #2825

Test Plan

  • RED: yarn test packages/cli-config/src/__tests__/schema-test.ts --runInBand failed before the schema change because both platform configs resolved to empty objects
  • yarn test packages/cli-config/src/__tests__/schema-test.ts --runInBand (5 passed)
  • yarn test packages/cli-config/src/__tests__ --runInBand (23 passed)
  • yarn test:ci:unit (56 suites, 318 passed, 1 pre-existing todo)
  • yarn lint (0 errors; 2 pre-existing warnings outside this diff)
  • yarn build
  • git diff --check

Checklist

  • Documentation is up to date.
  • Follows commit message convention described in CONTRIBUTING.md.
  • For functional changes, my test plan has linked these CLI changes into a local react-native checkout. This schema-only regression is covered directly at the validation boundary instead.

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

Reviewers

@thymikee thymikee Awaiting requested review from thymikee thymikee is a code owner

Assignees

No one assigned

Labels

bugfix docs Documentation change

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

project.ios.automaticPodsInstallation default of true never applies unless project.ios is explicitly declared in react-native.config.js

1 participant

AltStyle によって変換されたページ (->オリジナル) /