deanmcpherson / react-native-sortable-listview

Drag drop capable wrapper of ListView for React Native
MIT License
918 stars 235 forks source link

on longpress the row above immediately falls down behind the pressed one #48

Closed ippa closed 7 years ago

ippa commented 8 years ago

With just a longpress Without any movement, this happens: reorder

perqa commented 7 years ago

I experience the same problem. As soon as a row becomes active, the row above falls down on top of it, even though the active row hasn't moved at all. Once you start moving around, it works as expected.

I would be grateful for any clues pointing me to a possible solution.

sortable-listview

perqa commented 7 years ago

If you modify the style of SortableListView component to return <SortableListView style={{backgroundColor:"#bbbbbb", flex:1, marginTop:64}} it doesn't fall down anymore.

qcchen commented 7 years ago

Hi, perqa,I meet the same problem as you,but I don't understand how you to solove it. Add the line import styles from './Styles/ListviewExampleStyle', because the 'ListviewExampleStyle' can not find , can you tell me how to solve it ,thank you?

perqa commented 7 years ago

Hi @qcchen! Sorry, I referred to a file outside the current project. I have updated my previous comment to something more useful.

qcchen commented 7 years ago

Hi,@perqa! thanks,the problem inside the screen is worked well,but Beyond the one screen,the problem is also not Solved.

chetstone commented 7 years ago

This is mostly fixed by f5c2ae0cc55f3d8c332ee3ba5b8d3eb568520739. There is still a problem with a long list when it is partially scrolled down and an item close to the top is selected. Closing this, I will file a new issue detailing the problem.