mirror of
https://github.com/status-im/react-native.git
synced 2025-02-15 10:57:00 +00:00
[Docs] Add DeviceEventEmitter require to NativeModulesIOS docs
This commit is contained in:
parent
64ae42c10a
commit
731335eb7c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user