react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
17 lines (16 loc) • 592 B
TypeScript
import JSReanimated from './JSReanimated';
import type { AnimatedStyle, StyleProps } from '../commonTypes';
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 declare const _updatePropsJS: (updates: StyleProps | AnimatedStyle, viewRef: {
_component?: JSReanimatedComponent;
}) => void;
export default reanimatedJS;