import React, { Component, Ref } from 'react' import { Path, PathProps } from 'react-native-svg' import AnimatedSvg from '../../utils/AnimatedSVG' interface AnimatedSvgPathBaseProps extends PathProps { ref?: Ref } class AnimatedSvgPathBase extends Component { #_component: Path | null = null setNativeProps = (props: AnimatedSvgPathBaseProps = {}) => { this.#_component && this.#_component.setNativeProps(props) } render() { return ( (this.#_component = component)} {...this.props} /> ) } } const AnimatedSvgPath = AnimatedSvg(AnimatedSvgPathBase) export default AnimatedSvgPath