computerjazz / react-native-draggable-flatlist

A drag-and-drop-enabled FlatList for React Native
MIT License
1.95k stars 410 forks source link

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

Open ReactRaylogic opened 1 year ago

ReactRaylogic commented 1 year ago

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).

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