New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

react-native-sse-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-sse-client

## Getting started

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-native-sse-client

Getting started

$ npm install react-native-sse-client --save

Mostly automatic installation

$ react-native link react-native-sse-client

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-sse-client and add RNSseClient.xcodeproj
  • In XCode, in the project navigator, select your project. Add libRNSseClient.a to your project's Build Phases ➜ Link Binary With Libraries
  • Run your project (Cmd+R)<

Android

  • Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.reactlibrary.RNSseClientPackage; to the imports at the top of the file
  • Add new RNSseClientPackage() to the list returned by the getPackages() method
  • Append the following lines to android/settings.gradle:
    include ':react-native-sse-client'
    project(':react-native-sse-client').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-sse-client/android')
    
  • Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-sse-client')
    

Usage

import RNSseClient from 'react-native-sse-client';

// TODO: What to do with the module?
RNSseClient;

Keywords

react-native

FAQs

Package last updated on 14 Jan 2020

Related posts