From f52bd90b1b2a42f78356ab234f41d76bc829d8bf Mon Sep 17 00:00:00 2001 From: Josh Birdwell Date: Thu, 13 May 2021 07:54:02 -0500 Subject: [PATCH] Don't override the private functions with props With the spreading of props on the scroll view, the internal event listeners are overridden and the props take priority. That breaks the picker. The prop event handlers are already called within the internal event handlers. Extracting them off props before spreading will prevent them from overriding the internals while still being called as intended. --- src/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 0e0fc6e..677fdcb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -166,6 +166,12 @@ export default class HorizontalPicker extends PureComponent