TODO
npm install react-native-sweepr-modules$ npm install react-native-sweepr-modules --save
$ react-native link react-native-sweepr-modules
#### iOS
1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
2. Go to node_modules ➜ react-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 Phases ➜ Link 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.
2. 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')
android/app/build.gradle
3. Insert the following lines inside the dependencies block in :`
`
compile project(':react-native-sweepr-modules')
`javascript
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;
``