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 (#2300)

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

* Update docs/autolinking.md

---------

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
  • Loading branch information
felipebrahm and thymikee committed Feb 19, 2024
1 parent 77a3a43 commit 95c4375
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/facebook/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 @@ -148,7 +148,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 95c4375

Please sign in to comment.