Skip to content

Commit 3615275

Browse files
committed
update readme
1 parent ab1e3f0 commit 3615275

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Let your users sign in with their Linkedin account.
1111

1212
## Requirements
1313

14-
* node v4+.
14+
* Node v4+.
1515
* React Native 0.30+
1616

1717
## Installation
@@ -33,6 +33,9 @@ Then link the library to your project
3333
react-native link;
3434
```
3535

36+
In the manual section below you will find updates you need to make to your Info.plist file. Please also refer to the linkedin documentation at the bottom of this readme for more info.
37+
38+
3639
#### Manual
3740

3841
First install and save the library
@@ -41,30 +44,32 @@ First install and save the library
4144
npm install react-native-linkedin-login --save
4245
```
4346

44-
Drag and drop the following into the xcode project...
47+
Drag and drop the following xcode project file into the xcode project...
4548

46-
node_modules/react-native-linkedin-login/linkedin-sdk.framework
49+
node_modules/react-native-linkedin-login/ios/RCTLinkedinLogin.xcodeproj
4750

48-
and the entire folder...
49-
50-
node_modules/react-native-linkedin-login/RNLinkedinLogin/
5151

5252
Add these lines to your AppDelegate.m
5353

54+
```objc
55+
#import <RCTLinkedinLogin/RCTLinkedinLogin.h>
5456
```
57+
58+
```objc
59+
5560
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
5661
{
57-
if ([LISDKCallbackHandler shouldHandleUrl:url])
62+
if ([RCTLinkedinLogin shouldHandleUrl:url])
5863
{
59-
return [LISDKCallbackHandler application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
64+
return [RCTLinkedinLogin application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
6065
}
6166
return YES;
6267
}
6368
```
6469

6570
Add the following to your Info.plist, please refer to the Linkedin docs below...
6671

67-
```xml
72+
```plist
6873
6974
<key>NSAppTransportSecurity</key>
7075
<dict>
@@ -128,7 +133,7 @@ react-native link;
128133

129134
First install and save the library
130135

131-
```
136+
```bash
132137
npm install react-native-linkedin-login --save
133138
```
134139

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-linkedin-login",
3-
"version": "1.44.0",
3+
"version": "1.44.1",
44
"description": "React Native wrapper for native Linkedin login button and manager",
55
"main": "index",
66
"scripts": {

0 commit comments

Comments
 (0)