react-native-worklets
Version:
The React Native multithreading library
42 lines (36 loc) • 1.13 kB
text/typescript
;
import './publicGlobals';
import { init } from './initializers';
import { bundleModeInit } from './workletRuntimeEntry';
init();
export { setDynamicFeatureFlag } from './featureFlags/dynamicFlags';
export { createWorkletRuntime, runOnRuntime } from './runtimes';
export { shareableMappingCache } from './shareableMappingCache';
export type { MakeShareableClone } from './shareables';
export {
makeShareable,
makeShareableCloneOnUIRecursive,
makeShareableCloneRecursive,
} from './shareables';
export {
callMicrotasks,
executeOnUIRuntimeSync,
runOnJS,
runOnUI,
runOnUIAsync,
} from './threads';
export { isWorkletFunction } from './workletFunction';
export type { IWorkletsModule, WorkletsModuleProxy } from './WorkletsModule';
export { WorkletsModule } from './WorkletsModule';
export type {
ShareableRef,
WorkletFunction,
WorkletRuntime,
WorkletStackDetails,
} from './workletTypes';
// @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();
}