create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
19 lines (16 loc) • 626 B
text/typescript
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 as NativeReanimated;