react-native-sweepr-modules

1.3.0-beta.88 • Public • Published

react-native-sweepr-modules

Getting started

$ npm install react-native-sweepr-modules --save

Mostly automatic installation

$ react-native link react-native-sweepr-modules

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-sweepr-modules and add SweeprModules.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libSweeprModules.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/[...]/MainApplication.java
  • Add new SweeprCloudPackage(), new SweeprScanPackage(), new SweeprTestPackage(), new SweeprResolutionPackage(), new PingTestPackage() to the list returned by the getPackages() method
  • Use autoimport from android studio for get that packages automatically.
  1. Append the following lines to android/settings.gradle:
    include ':react-native-sweepr-modules'
    project(':react-native-sweepr-modules').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-sweepr-modules/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-sweepr-modules')
    

Usage

import { NativeModules } from "react-native";

// TODO: What to do with the module?
const speedTest = NativeModules.SpeedTest;
const pingTest = NativeModules.PingTest;
const sweeprCloud = NativeModules.SweeprCloud;
const sweeprScan = NativeModules.SweeprScan;

Readme

Keywords

Package Sidebar

Install

npm i react-native-sweepr-modules

Weekly Downloads

80

Version

1.3.0-beta.88

License

MIT

Unpacked Size

7.81 MB

Total Files

319

Last publish

Collaborators

  • anthowm
  • koushikv
  • dlarasw