1import getenv from 'getenv'; 2import { NativeModules } from 'react-native'; 3 4// Used for bare android device farm builds 5let ExponentTest; 6 7try { 8 if (NativeModules) { 9 ExponentTest = NativeModules.ExponentTest; 10 } 11} catch {} 12 13if (!ExponentTest) { 14 ExponentTest = { 15 get isInCI() { 16 return getenv.boolish('CI', false); 17 }, 18 log: console.log, 19 completed() { 20 // noop 21 }, 22 action() { 23 // noop 24 }, 25 }; 26} 27 28export default ExponentTest; 29