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

Commit

Permalink
Update README to ref new install docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbyron committed Sep 14, 2016
1 parent 6bff700 commit cac2610
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ First cd into your project's directory and grab the latest version of this code:
$ npm install react-native-event-source --save
```

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

![adding to XCode](http://brentvatne.ca/images/packaging/7-add-link.gif)
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.

## Using in your javascript code

Expand All @@ -34,7 +31,6 @@ var {
//....things you need plus....
DeviceEventEmitter
} = React;

```

Next grab `RNEventSource` and assign it to a variable.
Expand Down

0 comments on commit cac2610

Please sign in to comment.