deanmcpherson / react-native-sortable-listview

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

How to pass props other than 'data'? #32

Closed thomaswright closed 8 years ago

thomaswright commented 8 years ago

Other than the initial render and the row data props, props passed to the renderRow function don't seem to update.

deanmcpherson commented 8 years ago

Hey @thomaswright, try defining your own rowHasChanged. For performance reasons, we can't just re-render the row every time setState is called.

thomaswright commented 8 years ago

Okay, thanks @deanmcpherson, just checking :)

Twansparant commented 7 years ago

Could you post an example of this? I'm running into the same problem. Thanks!

thomaswright commented 7 years ago

Hi @Twansparant. I never got around to writing my own rowHasChanged and instead just stopped using this library. Would be interesting though - share if you do!