create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
13 lines (12 loc) • 399 B
JavaScript
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;