deanmcpherson / react-native-sortable-listview

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

disableSorting doesn't work #62

Closed gsavvid closed 7 years ago

gsavvid commented 7 years ago

Hello,

It seems like disableSorting is not working. I'm following the example code and when setting disableSorting={true} nothing changes. The only way I've found for disabling the sorting is to remove {...this.props.sortHandlers} from the row component. I've only tried this on Android.

Any ideas? Thanks in advance!

SmallMouth commented 7 years ago

hi, I have same problem.

chetstone commented 7 years ago

@gsavvid, @SmallMouth , can you try with the latest version? If it still doesn't work, could you please submit some example code demonstrating the problem? I've added a button for disabling and enabling sorting to the Sortable example app in this branch. Works for me.

foggy1 commented 7 years ago

It does not work for me either. I can't share a code sample right this minute, but I'm going to take a look at the source code when I get a chance. I'm in iOS, and I'm not spreading the entire sortHandler out in the row component's touchable highlight.

SmallMouth commented 7 years ago

@chetstone on this issue , I use version 0.1.1 and it does not work. now I update to version 0.2.2, it can work!!! my example code :

chetstone commented 7 years ago

Cool! Thanks for reporting!