Closed lesniakania closed 7 years ago
May you provide some code to reproduce this case?
You weren't responding for so long, so I'm no longer using your library actually. Does it work for you in the minimal setup (having any items, but many enough so they don't fit the screen as I described)?
@milesibastos ok, so I've checked this with the latest version now and the problem is reproducable if you just use your example code but wrap your component with ScrollView
(even if it has scrolled disabled):
<ScrollView scrollEnabled={false} horizontal={true}>
<SortableListView ....>
</ScrollView>
@lesniakania Is this a duplicate of #38? By the way, did you find an alternative component that works for your scenario?
Yes, it's a duplicate, sorry. Unfortunately I didn't find any other component, so I implemented my own one...: https://github.com/lesniakania/react-native-draggable-board
Closing duplicate #38
Steps to reproduce:
See gif:
I tried to debug it, but all I noticed is that
onPanResponderMove
is not executed in this case, because component is constantly rerendering (probably because of thesetState
in thecheckTargetElement
) andscrollAnimation
method is invoking all the time.setState -> render -> scrollAnimation -> setState -> render -> scrollAnimation -> ...
and noonPanResponderMove
node: v5.9.0
npm: 3.10.8
react-native: 0.37
(but previously I had0.31
and the same issues)