We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一开始我的尝试的实现方法思路是,在item组件中监听当前选中的index,选中即给当前引用样式。代码如下:
可当我跑的时候发现,长按item时,列表重新刷新了,也就无法进行拖拽了。
最终我改了DragSortableView源码才实现了我想要的效果。
DragSortableView
源码更改如下: 1、在state中添加moveIndex: ''; 2、在_renderItemView中修改如下: 3、在endTouch方法末尾添加this.setState({ moveIndex: '' });。
state
moveIndex: ''
_renderItemView
endTouch
this.setState({ moveIndex: '' });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一开始我的尝试的实现方法思路是,在item组件中监听当前选中的index,选中即给当前引用样式。代码如下:
可当我跑的时候发现,长按item时,列表重新刷新了,也就无法进行拖拽了。
最终我改了
DragSortableView
源码才实现了我想要的效果。源码更改如下:
1、在
state
中添加moveIndex: ''
;2、在
_renderItemView
中修改如下:3、在
endTouch
方法末尾添加this.setState({ moveIndex: '' });
。The text was updated successfully, but these errors were encountered: