expo-dev-menu
Version:
Expo/React Native module with the developer menu.
16 lines (14 loc) • 583 B
text/typescript
import * as Animated from './Animated';
import webGlobalIsInitialized from './reanimated2/js-reanimated/global';
if (!webGlobalIsInitialized) {
/*
`webGlobalIsInitialized` should always be `true`,
but we need to use `webGlobalIsInitialized` somewhere to ensure function execution,
in another way, the bundler can remove unused variables.
*/
console.error('[Reanimated] Unable to initialize global objects for web.');
}
// @ts-ignore backward compatibility with treeshaking
export * from './reanimated1';
export * from './reanimated2';
export default Animated;