Open EmilRais opened 1 year ago
It's super annoying that the following file: https://github.com/JesperLekland/react-native-svg-charts/blob/dev/src/animated-path.js
Passes its props, unfiltered, to "react-native-svg"'s Path so that the props end up in the dom. That triggers 3 super large warnings in the console on web based browsers. One for "animate", "animationDuration", and "renderPlaceholder".
It's easy to fix, just do the following:
const { animate, animationDuration, renderPlaceholder, ...otherProps } = this.props; return ( <Path ref={(ref) => (this.component = ref)} {...otherProps} d={this.props.animate ? this.state.d : this.props.d} /> );
Same error here!
What is the problem?
It's super annoying that the following file: https://github.com/JesperLekland/react-native-svg-charts/blob/dev/src/animated-path.js
Passes its props, unfiltered, to "react-native-svg"'s Path so that the props end up in the dom. That triggers 3 super large warnings in the console on web based browsers. One for "animate", "animationDuration", and "renderPlaceholder".
It's easy to fix, just do the following: