Skip to content

Commit

Permalink
docs: update iOS auto-linking docs after adding support for PNPM and …
Browse files Browse the repository at this point in the history
…workspace setups
  • Loading branch information
felipebrahm committed Feb 16, 2024
1 parent 2602f83 commit 1ff7247
Showing 1 changed file with 2 additions and 2 deletions.
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:

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

0 comments on commit 1ff7247

Please sign in to comment.