UNPKG

react-native-flubber

Version:

react native flubber wrapper for ios and android to set up animation to path component props

17 lines (16 loc) 478 B
/// <reference types="react" /> export declare type FlubberConfig = { step?: number; initialIndex?: number; onChange?: (path: string, frame: number) => void; }; export declare const useFlubber: (paths: string[], config?: FlubberConfig) => { animatedProps: Partial<{ d: string; }>; setFlubberIndex: import("react").Dispatch<import("react").SetStateAction<number>>; sharedPathValue: { value: string; }; currentIndex: number; };