pwbrown/react-native-ios-network-audio

Problem with Emitter

bleeuwen opened this issue · 2 comments

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)}
);

I created a PR to fix this: #4

Thanks for the code change!