deanmcpherson / react-native-sortable-listview

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

Android: some spacing is added when dragging #18

Closed antoinerousseau closed 8 years ago

antoinerousseau commented 8 years ago

I don't have any animation in Android. Also, why is there some spacing added below the dragged row when I start dragging?

Using Genymotion, react-native 0.27.0, react 15.1.0, react-native-sortable-listview 0.0.7.

sudosiyang commented 8 years ago

// Enable LayoutAnimation under Android

    if (Platform.OS === 'android') {
      UIManager.setLayoutAnimationEnabledExperimental(true)
    }
antoinerousseau commented 8 years ago

thanks @sudosiyang!

antoinerousseau commented 8 years ago

I still have a spacing issue though.

deanmcpherson commented 8 years ago

Hey @antoinerousseau, can you elaborate on what exactly the spacing issue you're experiencing?

antoinerousseau commented 8 years ago

@deanmcpherson I was going to make you a screencast, but I updated react-native to 0.28 in between and my problem seems to have disappeared! Basically, when I started dragging (so like one second after starting pressing the element) an empty space of the same height than the element was created just below it.

deanmcpherson commented 8 years ago

Hey @antoinerousseau, I think this is resolved now from 0.0.8.