UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

25 lines 1.04 kB
import type { AnimatedStyle, StyleProps } from '../../commonTypes'; export { createJSReanimatedModule } from './JSReanimated'; interface JSReanimatedComponent { previousStyle: StyleProps; setNativeProps?: (style: StyleProps) => void; style?: StyleProps; props: Record<string, string | number>; _touchableNode: { setAttribute: (key: string, props: unknown) => void; }; } export interface ReanimatedHTMLElement extends HTMLElement { previousStyle: StyleProps; setNativeProps?: (style: StyleProps) => void; props: Record<string, string | number>; _touchableNode: { setAttribute: (key: string, props: unknown) => void; }; reanimatedDummy?: boolean; removedAfterAnimation?: boolean; } export declare const _updatePropsJS: (updates: StyleProps | AnimatedStyle<any>, viewRef: (JSReanimatedComponent | ReanimatedHTMLElement) & { getAnimatableRef?: () => JSReanimatedComponent | ReanimatedHTMLElement; }, isAnimatedProps?: boolean) => void; //# sourceMappingURL=index.d.ts.map