numandev1 / react-native-interactable-reanimated

This is a copy of interactable from react-native-reanimated
MIT License
34 stars 5 forks source link

Flatlist can't scroll #1

Open tackanoway35 opened 3 years ago

tackanoway35 commented 3 years ago

I tested with interactablePlayground example but flatlist can't scroll, i only can swipe interable row. How to scroll flatlist? Thanks

m4r00p commented 2 years ago

That's my patch package:


diff --git a/node_modules/react-native-interactable-reanimated/src/index.js b/node_modules/react-native-interactable-reanimated/src/index.js
index 321ff17..338f084 100644
--- a/node_modules/react-native-interactable-reanimated/src/index.js
+++ b/node_modules/react-native-interactable-reanimated/src/index.js
@@ -481,6 +481,7 @@ class Interactable extends Component {
       <PanGestureHandler
         maxPointers={1}
         minDist={10}
+        failOffsetY={[-10, 10]}
         enabled={this.props.dragEnabled}
         onGestureEvent={this._onGestureEvent}
         onHandlerStateChange={this._onGestureEvent}
thanggggg1 commented 1 year ago

does it solved ?