UNPKG

2.46 kBTypeScriptView Raw
1/// <reference types="react" />
2import type { AnimatedKeyboardOptions, SensorConfig, SensorType, SharedValue, Value3D, ValueRotation } from './commonTypes';
3import type { LayoutAnimationBatchItem } from './layoutReanimation/animationBuilder/commonTypes';
4export { startMapper, stopMapper } from './mappers';
5export { runOnJS, runOnUI, executeOnUIRuntimeSync } from './threads';
6export { createWorkletRuntime, runOnRuntime } from './runtimes';
7export type { WorkletRuntime } from './runtimes';
8export { makeShareable, makeShareableCloneRecursive } from './shareables';
9export { makeMutable } from './mutables';
10/** @returns `true` in Reanimated 3, doesn't exist in Reanimated 2 or 1 */
11export declare const isReanimated3: () => boolean;
12/**
13 * @deprecated This function was superseded by other checks. We keep it here for
14 * backward compatibility reasons. If you need to check if you are using
15 * Reanimated 3 or Reanimated 2 please use `isReanimated3` function instead.
16 * @returns `true` in Reanimated 3, doesn't exist in Reanimated 2
17 */
18export declare const isConfigured: () => boolean;
19export declare function getViewProp<T>(viewTag: number, propName: string, component?: React.Component): Promise<T>;
20export declare function registerEventHandler<T>(eventHandler: (event: T) => void, eventName: string, emitterReactTag?: number): number;
21export declare function unregisterEventHandler(id: number): void;
22export declare function subscribeForKeyboardEvents(eventHandler: (state: number, height: number) => void, options: AnimatedKeyboardOptions): number;
23export declare function unsubscribeFromKeyboardEvents(listenerId: number): void;
24export declare function registerSensor(sensorType: SensorType, config: SensorConfig, eventHandler: (data: Value3D | ValueRotation, orientationDegrees: number) => void): number;
25export declare function initializeSensor(sensorType: SensorType, config: SensorConfig): SharedValue<Value3D | ValueRotation>;
26export declare function unregisterSensor(sensorId: number): void;
27export declare function enableLayoutAnimations(flag: boolean, isCallByUser?: boolean): void;
28export declare function configureLayoutAnimationBatch(layoutAnimationsBatch: LayoutAnimationBatchItem[]): void;
29export declare function setShouldAnimateExitingForTag(viewTag: number | HTMLElement, shouldAnimate: boolean): void;
30export declare function jsiConfigureProps(uiProps: string[], nativeProps: string[]): void;
31//# sourceMappingURL=core.d.ts.map
\No newline at end of file