UNPKG

react-native-d3multiline-chart

Version:
20 lines (18 loc) 684 B
import { Animated, } from 'react-native'; import AnimatedSVGBrush from '../AnimatedSVGBrush'; import AnimatedSVGPropString from '../AnimatedSVGPropString'; import AnimatedSVGState from '../AnimatedSVGState'; import AnimatedSVGTransform from '../AnimatedSVGTransform'; function AnimatedSVG (Component, { state, propString, keepXY } = {}) { Component = AnimatedSVGState(Component, state); Component = AnimatedSVGBrush(Component); Component = AnimatedSVGPropString(Component, propString); Component = AnimatedSVGTransform(Component, { keepXY }); Component = Animated.createAnimatedComponent(Component); return Component; } export default AnimatedSVG;