diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index 1fa4f93fb..acba1f05f 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -256,9 +256,9 @@ 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 { NativeAppEventEmitter } = require('react-native'); -var subscription = DeviceEventEmitter.addListener( +var subscription = NativeAppEventEmitter.addListener( 'EventReminder', (reminder) => console.log(reminder.name) );