import {
  NativeModules,
  Platform,
  NativeEventEmitter,
  DeviceEventEmitter,
} from 'react-native';

const NativeEmitter = Platform.select({
  ios: new NativeEventEmitter(NativeModules.Vivocha),
  android: DeviceEventEmitter,
});

export default NativeEmitter;
