UNPKG

expo-modules-core

Version:
11 lines 495 B
import { EventEmitter } from '../EventEmitter'; import Platform from '../Platform'; import NativeErrorManager from './NativeErrorManager'; if (__DEV__ && Platform.OS === 'android' && NativeErrorManager) { const onNewException = 'ExpoModulesCoreErrorManager.onNewException'; const eventEmitter = new EventEmitter(NativeErrorManager); eventEmitter.addListener(onNewException, ({ message }) => { console.error(message); }); } //# sourceMappingURL=setUpErrorManager.fx.js.map