import * as React from 'react'; import {ColorValue} from 'react-native'; import Svg, {G, Path} from 'react-native-svg'; import {ruleTypes} from 'gifted-charts-core'; type ruleProps = { thickness: number; width: number; color: ColorValue | string | any; type: string; dashWidth: number; dashGap: number; }; type configType = { config: ruleProps; }; function Rule(props: configType) { const {thickness, width, color, type, dashWidth, dashGap} = props.config; if (type === ruleTypes.SOLID) { return ( ); } return ( ); } export default Rule;