Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update iOS auto-linking docs after adding support for PNPM and workspace setups #2300

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/autolinking.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Each platform defines its own [`platforms`](./platforms.md) configuration. It in

## Platform iOS

The [native_modules.rb](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios/native_modules.rb) script required by `Podfile` gets the package metadata from `react-native config` during install phase and:
The [react-native/scripts/react_native_pods.rb](https://github.com/robhogan/react-native/blob/master/packages/react-native/scripts/react_native_pods.rb) script required by `Podfile` requires the [native_modules.rb](https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios/native_modules.rb) script, which gets the package metadata from `react-native config` during install phase and:
thymikee marked this conversation as resolved.
Show resolved Hide resolved

1. Adds dependencies via CocoaPods dev pods (using files from a local path).
1. Adds build phase scripts to the App project’s build phase. (see examples below)
Expand Down Expand Up @@ -146,7 +146,7 @@ There is nothing extra you need to do - monorepos are supported by default.
Please note that in certain scenarios, such as when using Yarn workspaces, your packages might be hoisted to the root of the repository. If that is the case, please make sure that the following paths are pointing to the
correct location and update them accordingly:

- path to `native_modules.rb` in your `ios/Podfile`
- path to `native_modules.rb` in your `ios/Podfile` (the right path should be resolved automatically in react-native >0.73)
- path to `native_modules.gradle` in your `android/settings.gradle`
- path to `native_modules.gradle` in your `android/app/build.gradle`

Expand Down
Loading