From 6284a1b9acbf994c380e368e1d18448737ae2786 Mon Sep 17 00:00:00 2001 From: Yen Sheng Date: Thu, 10 Jun 2021 15:34:21 +0800 Subject: [PATCH] =?UTF-8?q?To=20fix=20React=20Native=20Error:=20=E2=80=9CA?= =?UTF-8?q?nimated.event=20now=20requires=20a=20second=20argument=20for=20?= =?UTF-8?q?options=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix React Native Error: “Animated.event now requires a second argument for options” --- src/line-chart/LineChart.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/line-chart/LineChart.tsx b/src/line-chart/LineChart.tsx index 3b7a5a90..16cc27ec 100644 --- a/src/line-chart/LineChart.tsx +++ b/src/line-chart/LineChart.tsx @@ -982,7 +982,8 @@ class LineChart extends AbstractChart { contentOffset: { x: scrollableDotHorizontalOffset } } } - ])} + ], { useNativeDriver: false } + )} horizontal bounces={false} />