event-source-library-test
v1.3.0
Published
Server side events for iOS written in Swift
Downloads
4
Maintainers
Readme
react-native-event-source
Getting started
$ npm install react-native-event-source --save
Mostly automatic installation
$ react-native link react-native-event-source
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-event-source
and addRNEventSource.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNEventSource.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNEventSource from 'react-native-event-source';
// TODO: What to do with the module?
RNEventSource;