deanmcpherson / react-native-sortable-listview

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

Android: adjacent rows change positions not smoothly when dragging #31

Closed o-khizhnyak closed 8 years ago

o-khizhnyak commented 8 years ago

Unlike iOS demo, when running example.js on Android, inactive rows change theirs positions without any animation when active item is dragging.

Using react-native 0.30.0, react-native-sortable-listview 0.1.1, Android 5.0.1.

sortable-listview-android

uc-des commented 8 years ago

Hello o-khizhnyak I am not able to drop the component to specific place Using Android

deanmcpherson commented 8 years ago

Hi @o-khizhnyak, the animation on iOS is purely powered by LayoutAnimation. If you have LayoutAnimation enabled it may work also on android (see https://github.com/facebook/react-native/issues/5267).

o-khizhnyak commented 8 years ago

Thanks, @deanmcpherson, it works! Enabling of LayoutAnimation solved this problem.