Skip to content

Commit

Permalink
[Docs] Add DeviceEventEmitter require to NativeModulesIOS docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Vatne committed May 27, 2015
1 parent 64ae42c commit 731335e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/NativeModulesIOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ The native module can signal events to JavaScript without being invoked directly
JavaScript code can subscribe to these events:
```javascript
var { DeviceEventEmitter } = require('react-native');
var subscription = DeviceEventEmitter.addListener(
'EventReminder',
(reminder) => console.log(reminder.name)
Expand Down

0 comments on commit 731335e

Please sign in to comment.