diff --git a/src/chart.js b/src/chart.js index 22241293..9eb63bd2 100644 --- a/src/chart.js +++ b/src/chart.js @@ -4,7 +4,7 @@ import * as shape from 'd3-shape' import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { View } from 'react-native' -import Svg from 'react-native-svg' +import Svg, { G } from 'react-native-svg' import Path from './animated-path' class Chart extends PureComponent { @@ -123,14 +123,16 @@ class Chart extends PureComponent { animate={ animate } animationDuration={ animationDuration } /> - { - React.Children.map(children, child => { - if (child && !child.props.belowChart) { - return React.cloneElement(child, extraProps) - } - return null - }) - } + + { + React.Children.map(children, child => { + if (child && !child.props.belowChart) { + return React.cloneElement(child, extraProps) + } + return null + }) + } + }