react-native-letote-sensors

3.6.0 • Public • Published

react-native-letote-sensors

Getting started

$ npm install react-native-letote-sensors --save

Mostly automatic installation

$ react-native link react-native-letote-sensors

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-letote-sensors and add RNSensors.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSensors.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.rnsensors.RNSensorsPackage; to the imports at the top of the file
  • Add new RNSensorsPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-letote-sensors'
    project(':react-native-letote-sensors').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-letote-sensors/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-letote-sensors')
    

Windows

Read it! :D

  1. In Visual Studio add the RNSensors.sln in node_modules/react-native-letote-sensors/windows/RNSensors.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Sensors.RNSensors; to the usings at the top of the file
  • Add new RNSensorsPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNSensors from 'react-native-letote-sensors';
 
// TODO: What to do with the module?
RNSensors;

Readme

Keywords

Package Sidebar

Install

npm i react-native-letote-sensors

Weekly Downloads

2

Version

3.6.0

License

none

Unpacked Size

484 kB

Total Files

48

Last publish

Collaborators

  • blakefangqi