Skip to content

Commit

Permalink
Update README.md (manual setup and supported sensors) kprimice#12
Browse files Browse the repository at this point in the history
  • Loading branch information
ohtangza committed Dec 13, 2016
1 parent 74f0cb1 commit 287c682
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
react-native-sensor-manager
============================

Wrapper for react-native. Accelerometer, Gyroscope, Magnetometer, Step Counter, Thermometer are supported for now.
Wrapper for react-native. Accelerometer, Gyroscope, Magnetometer, Orientation, Step Counter, Thermometer, LightSensor, and Proximity Sensor are supported for now.

Add it to your project
-------------------------
Expand All @@ -12,7 +12,7 @@ Add it to your project

`rnpm link`

### Option: Manually
### Option: Manually (try it if an runtime error occurs after `nrpm link`)

Make alterations to the following files:

Expand Down Expand Up @@ -74,7 +74,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
```java
import com.sensormanager.SensorManagerPackage; // <------ add package

public class MainActivity extends ReactActivity {
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List<ReactPackage> getPackages() {
Expand All @@ -94,7 +94,7 @@ import React, {
DeviceEventEmitter // will emit events that you can listen to
} from 'react-native';

var mSensorManager = require('NativeModules').SensorManager;
import { mSensorManager } from 'NativeModules';
```


Expand Down

0 comments on commit 287c682

Please sign in to comment.