create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
16 lines (15 loc) • 604 B
JavaScript
import reanimatedJS from '../js-reanimated';
import { nativeShouldBeMock } from '../PlatformChecker';
import { Platform } from 'react-native';
import { NativeReanimated } from './NativeReanimated';
let exportedModule;
if (nativeShouldBeMock()) {
exportedModule = reanimatedJS;
}
else {
exportedModule = new NativeReanimated();
if (exportedModule.useOnlyV1 && Platform.OS === 'android') {
console.warn(`If you want to use Reanimated 2 then go through our installation steps https://docs.swmansion.com/react-native-reanimated/docs/installation`);
}
}
export default exportedModule;