1.3.0 • Published 6 years ago
event-source-library-test v1.3.0
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-sourceand addRNEventSource.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNEventSource.ato 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;