UNPKG

react-native-worklets

Version:
72 lines (67 loc) 1.8 kB
'use strict'; import { init } from './initializers/initializers'; import { bundleModeInit } from './initializers/workletRuntimeEntry'; init(); // @ts-expect-error We must trick the bundler to include // the `workletRuntimeEntry` file the way it cannot optimize it out. if (globalThis._ALWAYS_FALSE) { // Bundle mode. bundleModeInit(); } export { isShareableRef, makeShareable, type MakeShareableClone, makeShareableCloneOnUIRecursive, makeShareableCloneRecursive, shareableMappingCache, type ShareableRef, } from './deprecated'; export { getDynamicFeatureFlag, getStaticFeatureFlag, setDynamicFeatureFlag, } from './featureFlags/featureFlags'; export { isSynchronizable } from './memory/isSynchronizable'; export { createSerializable, isSerializableRef, registerCustomSerializable, } from './memory/serializable'; export { serializableMappingCache } from './memory/serializableMappingCache'; export { createSynchronizable } from './memory/synchronizable'; export type { RegistrationData, SerializableRef, Synchronizable, SynchronizableRef, } from './memory/types'; export { getRuntimeKind, RuntimeKind } from './runtimeKind'; export { createWorkletRuntime, runOnRuntime, scheduleOnRuntime, } from './runtimes'; export { callMicrotasks, executeOnUIRuntimeSync, runOnJS, runOnUI, runOnUIAsync, runOnUISync, scheduleOnRN, scheduleOnUI, // eslint-disable-next-line camelcase unstable_eventLoopTask, } from './threads'; export type { WorkletFunction, WorkletRuntime, WorkletStackDetails, } from './types'; export { isWorkletFunction } from './workletFunction'; export { WorkletsModule } from './WorkletsModule/NativeWorklets'; export type { IWorkletsModule, WorkletsModuleProxy, } from './WorkletsModule/workletsModuleProxy';