Skip to content

Commit

Permalink
update note about RCTLinking due to auto-linking (facebook#2536)
Browse files Browse the repository at this point in the history
## Problem
The note telling people to "link RCTLinking to your project" is out of date due to the introduction of [auto-linking](https://reactnative.dev/blog/2019/07/03/version-60#native-modules-are-now-autolinked) in React Native 0.60.

The note is quite confusing for users who are simply directed to [this](https://reactnative.dev/docs/linking-libraries-ios#manual-linking) article explaining how to link a now nonexistent `.xcodeproj` file to their main Xcode project.

## Solution
[Step 3](https://reactnative.dev/docs/linking-libraries-ios#step-3) from the referenced article is still required as auto-linking will not add the header files for RCTLinkingManager (located in the LinkingIOS folder) into the header search paths. As such I have tweaked the wording of the note and updated the link to point to step 3.
  • Loading branch information
JamesBLewis authored Mar 10, 2021
1 parent ae1f3bc commit 39ebc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.63/linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you wish to receive the intent in an existing instance of MainActivity, you m
</TabItem>
<TabItem value="ios">

> **NOTE:** On iOS, you'll need to link `RCTLinking` to your project by following the steps described [here](linking-libraries-ios.md#manual-linking). If you also want to listen to incoming app links during your app's execution, you'll need to add the following lines to your `*AppDelegate.m`:
> **NOTE:** On iOS, you'll need to add the `LinkingIOS` folder into your header search paths as described in step 3 [here](linking-libraries-ios#step-3). If you also want to listen to incoming app links during your app's execution, you'll need to add the following lines to your `*AppDelegate.m`:
```objectivec
// iOS 9.x or newer
Expand Down

0 comments on commit 39ebc94

Please sign in to comment.