Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit cac2610

Browse files
committed
Update README to ref new install docs
1 parent 6bff700 commit cac2610

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ First cd into your project's directory and grab the latest version of this code:
1616
$ npm install react-native-event-source --save
1717
```
1818

19-
In XCode add the library from
20-
`node_modules/react-native-event-source/iOS/RNEventSource.xcodeproj` to your project
21-
then add `libRNEventSource` to your project's __Build Phase__ > __Link Binary With
22-
Libraries__ list.
19+
### Linking the Library
2320

24-
![adding to XCode](http://brentvatne.ca/images/packaging/7-add-link.gif)
21+
In order to use event source you must first link the library to your project. There's excellent documentation on how to do this in the [React Native Docs](http://facebook.github.io/react-native/docs/linking-libraries-ios.html#content). Make sure you do all steps including #3.
2522

2623
## Using in your javascript code
2724

@@ -34,7 +31,6 @@ var {
3431
//....things you need plus....
3532
DeviceEventEmitter
3633
} = React;
37-
3834
```
3935

4036
Next grab `RNEventSource` and assign it to a variable.

0 commit comments

Comments
 (0)