From f5257ce0c982d4918b93e1542c5ab52917808bac Mon Sep 17 00:00:00 2001 From: Mohamed Date: Fri, 22 Jul 2022 20:29:41 -0700 Subject: [PATCH] Fix for: Property 'children' does not exist error I'm getting the error shown in issue #166 , this change seems to fix it. --- src/Chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Chart.tsx b/src/Chart.tsx index 19eef5d..01d9499 100644 --- a/src/Chart.tsx +++ b/src/Chart.tsx @@ -37,7 +37,7 @@ export type ChartHandle = { setViewportOrigin: (origin: XYValue) => void } -const Chart: React.FC = React.memo( +const Chart: React.FC> = React.memo( React.forwardRef((props, ref) => { const { style, children, data = [], padding, xDomain, yDomain, viewport, disableGestures, disableTouch } = deepmerge(computeDefaultProps(props), props) const { dimensions, onLayout } = useComponentDimensions()