react-native#NativeEventEmitter JavaScript Examples
The following examples show how to use
react-native#NativeEventEmitter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: lyricDesktop.js From lx-music-mobile with Apache License 2.0 | 6 votes |
onPositionChange = callback => {
const eventEmitter = new NativeEventEmitter(LyricModule)
const eventListener = eventEmitter.addListener('set-position', event => {
callback(event)
})
return () => {
eventListener.remove()
}
}
Example #2
Source File: service.js From bluezone-app with GNU General Public License v3.0 | 5 votes |
eventEmitter = new NativeEventEmitter(NativeModules.TraceCovid)
Example #3
Source File: OnboardingWrapper.js From haven with MIT License | 5 votes |
iOSeventEmitter = new NativeEventEmitter(ModuleWithEmitter)
Example #4
Source File: index.android.js From react-snap-kit with MIT License | 5 votes |
RNSnapchatKitEmitter = new NativeEventEmitter(RNSnapchatKit)
Example #5
Source File: index.ios.js From react-snap-kit with MIT License | 5 votes |
RNSnapchatKitEmitter = new NativeEventEmitter(RNSnapchatKit)
Example #6
Source File: notification.android.js From RRWallet with MIT License | 5 votes |
loadingManagerEmitter = new NativeEventEmitter(ReactNativeLoading)
Example #7
Source File: quickAction.js From RRWallet with MIT License | 5 votes |
eventEmitter = new NativeEventEmitter(quickAction)
Example #8
Source File: tracing.js From stayaway-app with European Union Public License 1.2 | 5 votes |
addUpdateEventListener = (callback) => {
updateEventSubscriber = new NativeEventEmitter(TracingManager).addListener(EVENTS[Platform.OS].UPDATE_EVENT, callback);
return updateEventSubscriber;
}
Example #9
Source File: restoreProfilePassword.js From haven with MIT License | 4 votes |
iOSeventEmitter = new NativeEventEmitter(ModuleWithEmitter)