UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

22 lines (16 loc) 490 B
import { Platform } from 'react-native'; export function isJest(): boolean { return !!process.env.JEST_WORKER_ID; } export function isChromeDebugger(): boolean { return !(global as any).nativeCallSyncHook || (global as any).__REMOTEDEV__; } export function isWeb(): boolean { return Platform.OS === 'web'; } export function shouldBeUseWeb() { return isJest() || isChromeDebugger() || isWeb(); } export function nativeShouldBeMock() { return isJest() || isChromeDebugger(); }