Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OXIT-LLC/react-native-upnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

react-native-upnp

Getting started

$ npm install react-native-upnp --save

Mostly automatic installation

$ react-native link react-native-upnp

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-upnp and add RNUpnp.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNUpnp.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

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

Usage

import RNUpnp from 'react-native-upnp';
// TODO: What to do with the module?
RNUpnp;

About

Find devices use upnp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Java 98.9%
  • Other 1.1%

AltStyle によって変換されたページ (->オリジナル) /