expo-modules-core
Version:
The core of Expo Modules architecture
11 lines • 495 B
JavaScript
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