Problem with Emitter
bleeuwen opened this issue · 2 comments
bleeuwen commented
The described code (with new option to check for the end) did not work
I corrected it as follows:
var NativeAppEventEmitter=require('RCTNativeAppEventEmitter');
var subscription = NativeAppEventEmitter.addListener(
'AudioEnded',
(trigger) => {console.log(trigger.event)}
);
pwbrown commented
Thanks for the code change!