UNPKG

@osobh/reactar

Version:

AR Library for React Native and Expo

15 lines (13 loc) 354 B
// __mocks__/expo-modules-core.js const EventEmitter = require('events'); export function requireNativeModule(moduleName) { if (moduleName === 'ExponentGLViewManager') { return { createGLContext: jest.fn(), destroyGLContext: jest.fn(), takeSnapshot: jest.fn() }; } return {}; } export { EventEmitter };