UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

26 lines (25 loc) 964 B
import JSReanimated from './JSReanimated'; import type { StyleProps } from '../commonTypes'; import type { AnimatedStyle } from '../helperTypes'; declare const reanimatedJS: 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; }; } export declare const _updatePropsJS: (updates: StyleProps | AnimatedStyle<any>, viewRef: { _component?: JSReanimatedComponent | ReanimatedHTMLElement; }, isAnimatedProps?: boolean) => void; export default reanimatedJS;