UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

15 lines (14 loc) 571 B
import type { SharedValue } from './commonTypes'; export type Mapper = { id: number; dirty: boolean; worklet: () => void; inputs: SharedValue<any>[]; outputs?: SharedValue<any>[]; }; export declare function createMapperRegistry(): { start: (mapperID: number, worklet: () => void, inputs: SharedValue<any>[], outputs?: SharedValue<any>[]) => void; stop: (mapperID: number) => void; }; export declare function startMapper(worklet: () => void, inputs?: any[], outputs?: any[]): number; export declare function stopMapper(mapperID: number): void;