import { DeviceEventEmitter , NativeEventEmitter , NativeModules , Platform , } from 'react-native' ; export const BatchEventEmitter = Platform . select ( { ios : new NativeEventEmitter ( NativeModules . RNBatch ) , android : DeviceEventEmitter , } ) ; export interface EmitterSubscription { remove : ( ) => void ; }