Skip to content

Commit 2924c34

Browse files
authored
Update README.md
Updated iOS Install Instructions
1 parent 260a526 commit 2924c34

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: README.md

+21
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import com.reactlibrary.linkedinsdk.RNLinkedInSessionManagerPackage; // Add this
5555

5656

5757
## iOS
58+
5859
Follow instructions from [Official Guide](https://developer.linkedin.com/docs/ios-sdk) to:
5960
- [Create an application on LinkedIn](https://www.linkedin.com/secure/developer?newapp=), if haven't done it for Android already.
6061
- [Configure your app on LinkedIn](https://www.linkedin.com/developer/apps).
@@ -89,6 +90,26 @@ Add to your `{YourApp}/ios/{YourApp}/AppDelegate.h`:
8990
#import <LinkedinSwift/LSHeader.h>
9091
```
9192

93+
Make sure you have a Swift Bridging Header for your project. Here's [how to create one](http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/), if you don't.
94+
Add to your Swift Bridging Header, `{YourApp}-Bridging-Header.h`:
95+
```
96+
#import <React/RCTBridgeModule.h>
97+
#import <React/RCTViewManager.h>
98+
#import <React/RCTEventEmitter.h>
99+
#import <LinkedInSwift/LSHeader.h>
100+
```
101+
102+
103+
Link `react-native-linkedin-sdk`
104+
- Open up your project in xcode and right click the package.
105+
- Click `Add files to '{YourApp}'`.
106+
- Select to `{YourApp}/node_modules/react-native-linkedin-sdk/ios/RNLinkedInSessionManager`.
107+
- Click 'Add'.
108+
- Click your project in the navigator on the left and go to `Build Settings`.
109+
- Search for `Header Search Paths`.
110+
- Double click on the value column.
111+
- Add `$(SRCROOT)/../node_modules/react-native-linkedin-sdk/ios/RNLinkedInSessionManager`.
112+
92113

93114

94115
## Usage

0 commit comments

Comments
 (0)