Skip to content

Instantly share code, notes, and snippets.

@kenyipp
Created January 21, 2024 20:16
Show Gist options
  • Save kenyipp/25a4848bc1adaa1b0f34a5aa63bd37cc to your computer and use it in GitHub Desktop.
Save kenyipp/25a4848bc1adaa1b0f34a5aa63bd37cc to your computer and use it in GitHub Desktop.
Definition file for react-native-svg-animations
declare module 'react-native-svg-animations' {
interface AnimatedSVGPathProps {
d: string;
strokeColor?: string;
strokeWidth?: number;
strokeLinecap?: string;
easing?: any;
duration?: number;
width?: number;
height?: number;
scale?: number;
loop?: boolean;
transform?: string;
reverse?: boolean;
rewind?: boolean;
}
interface AnimatedSVGPathsProps {
ds: string[];
strokeColor?: string;
strokeWidth?: number;
duration?: number;
width?: number;
height?: number;
delay?: number;
scale?: number;
fill?: string;
loop?: boolean;
rewind?: boolean;
}
class AnimatedSVGPath extends React.Component<AnimatedSVGPathProps> { }
class AnimatedSVGPaths extends React.Component<AnimatedSVGPathsProps> { }
export {
AnimatedSVGPath,
AnimatedSVGPaths
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment