Skip to content

Commit c27defe

Browse files
committed
Merge pull request #1894 from colinramsay/patch-1
Update NativeModule documentation to show correct event emitter usage
2 parents fe2155e + b13e2e8 commit c27defe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/NativeModulesIOS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ The native module can signal events to JavaScript without being invoked directly
256256
JavaScript code can subscribe to these events:
257257
258258
```javascript
259-
var { DeviceEventEmitter } = require('react-native');
259+
var { NativeAppEventEmitter } = require('react-native');
260260
261-
var subscription = DeviceEventEmitter.addListener(
261+
var subscription = NativeAppEventEmitter.addListener(
262262
'EventReminder',
263263
(reminder) => console.log(reminder.name)
264264
);

0 commit comments

Comments
 (0)