UNPKG

create-expo-cljs-app

Version:

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

14 lines (11 loc) 395 B
import { NativeModules } from 'react-native'; import ReanimatedModuleCompat from './ReanimatedModuleCompat'; import { nativeShouldBeMock } from './reanimated2/PlatformChecker'; let exportedModule; if (nativeShouldBeMock()) { exportedModule = ReanimatedModuleCompat; } else { const { ReanimatedModule } = NativeModules; exportedModule = ReanimatedModule; } export default exportedModule;