You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,9 @@ First cd into your project's directory and grab the latest version of this code:
16
16
$ npm install react-native-event-source --save
17
17
```
18
18
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
23
20
24
-

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.
25
22
26
23
## Using in your javascript code
27
24
@@ -34,7 +31,6 @@ var {
34
31
//....things you need plus....
35
32
DeviceEventEmitter
36
33
} = React;
37
-
38
34
```
39
35
40
36
Next grab `RNEventSource` and assign it to a variable.
0 commit comments