react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

Selected item floats but the remaining items does not slides until and unless i move the floating item at the end of the screen

Open ReactRaylogic opened this issue 2 years ago • 1 comments

Describe the bug When starting to move the selected item floats over the list but the remaining items in the list do not move to the empty position in the list until the selected item reaches the end of the screen once it moves beyond it all the list items move and behave normally.

To Reproduce <DraggableFlatList onTouchStart={this.handlePressIn.bind(this)} data={this.state.data} contentContainerStyle={{padding: 10}} renderItem={this._renderItem} containerStyle={{flex: 1}} scrollPercent={80} autoscrollSpeed={1000} initialNumToRender={16} keyExtractor={(item, index) => draggable-item-${index}} onDragEnd={({ data }) => this.onDragRelease(data)} />

Platform & Dependencies Please list any applicable dependencies in addition to those below (react-navigation etc).

  • react-native-draggable-flatlist version:4.0.1
  • Platform: iOS and Android
  • React Native or Expo version: 0.71.4
  • Reanimated version: 2.14.4
  • React Native Gesture Handler version: 2.9.0

https://github.com/computerjazz/react-native-draggable-flatlist/assets/76038622/c6e52722-95f6-4dcd-aceb-f520b433407f

ReactRaylogic avatar Oct 09 '23 12:10 ReactRaylogic

Hi, I’m experiencing the same issue described here. The selected item floats correctly, but the rest of the list doesn’t update its position until the dragged item reaches the edge of the screen.

Were you able to find a solution or workaround for this? I’d really appreciate any insights.

Thanks in advance!

stealstick avatar Apr 14 '25 12:04 stealstick