react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
17 lines (16 loc) • 597 B
JavaScript
;
import { executeOnUIRuntimeSync } from 'react-native-worklets';
import { DEFAULT_LOGGER_CONFIG, IS_WEB, registerLoggerConfig, SHOULD_BE_USE_WEB } from "./common/index.js";
export function initializeReanimatedModule(ReanimatedModule) {
if (IS_WEB) {
return;
}
if (!ReanimatedModule) {
throw new ReanimatedError('Tried to initialize Reanimated without a valid ReanimatedModule');
}
}
registerLoggerConfig(DEFAULT_LOGGER_CONFIG);
if (!SHOULD_BE_USE_WEB) {
executeOnUIRuntimeSync(registerLoggerConfig)(DEFAULT_LOGGER_CONFIG);
}
//# sourceMappingURL=initializers.js.map