Skip to content

Commit

Permalink
Merge pull request yonahforst#1 from Pocket-titan/patch-1
Browse files Browse the repository at this point in the history
Small thingys
  • Loading branch information
yonahforst committed Mar 19, 2016
2 parents fdf68ca + 5222d2b commit 79a40a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Report back device orientation in degrees, 0-360, with 0 being North.
####Example
```java
const { DeviceEventEmitter } = require('react-native');
const ReactNativeHeading = require('react-native-Heading');
const ReactNativeHeading = require('react-native-heading');

//....
componentDidMount() {
Expand All @@ -25,7 +25,7 @@ const ReactNativeHeading = require('react-native-Heading');
}
componentWillUnmount() {
ReactNativeHeading.stop();
DeviceEventEmitter.removeListener('headingUpdated');
DeviceEventEmitter.removeAllListeners('headingUpdated');
}
//...
```
Expand Down

0 comments on commit 79a40a8

Please sign in to comment.