mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[Docs] Add DeviceEventEmitter require to NativeModulesIOS docs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user