File tree Expand file tree Collapse file tree 4 files changed +11
-18
lines changed Expand file tree Collapse file tree 4 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -368,13 +368,7 @@ export default class AutoDragSortableView extends Component{
368
368
} else if ( index >= moveToIndex && index < this . touchCurItem . index ) {
369
369
nextItem = this . state . dataSource [ index + 1 ]
370
370
371
- } else if ( index != this . touchCurItem . index &&
372
- ( item . position . x . _value != item . originLeft ||
373
- item . position . y . _value != item . originTop ) ) {
374
- nextItem = this . state . dataSource [ index ]
375
-
376
- } else if ( ( this . touchCurItem . index - moveToIndex > 0 && moveToIndex == index + 1 ) ||
377
- ( this . touchCurItem . index - moveToIndex < 0 && moveToIndex == index - 1 ) ) {
371
+ } else {
378
372
nextItem = this . state . dataSource [ index ]
379
373
}
380
374
Original file line number Diff line number Diff line change @@ -227,13 +227,7 @@ export default class DragSortableView extends Component{
227
227
} else if ( index >= moveToIndex && index < this . touchCurItem . index ) {
228
228
nextItem = this . state . dataSource [ index + 1 ]
229
229
230
- } else if ( index != this . touchCurItem . index &&
231
- ( item . position . x . _value != item . originLeft ||
232
- item . position . y . _value != item . originTop ) ) {
233
- nextItem = this . state . dataSource [ index ]
234
-
235
- } else if ( ( this . touchCurItem . index - moveToIndex > 0 && moveToIndex == index + 1 ) ||
236
- ( this . touchCurItem . index - moveToIndex < 0 && moveToIndex == index - 1 ) ) {
230
+ } else {
237
231
nextItem = this . state . dataSource [ index ]
238
232
}
239
233
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " react-native-drag-sort" ,
2
+ "name" : " @react-native-oh-tpl/ react-native-drag-sort" ,
3
3
"version" : " 2.4.4" ,
4
4
"description" : " Drag and drop sort control for react-native" ,
5
- "main" : " index.js " ,
5
+ "main" : " index" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1"
8
8
},
23
23
],
24
24
"author" : " mochixuan" ,
25
25
"license" : " ISC" ,
26
- "dependencies" : {},
26
+ "dependencies" : {
27
+ "react-native-drag-sort" : " ^2.4.4"
28
+ },
27
29
"devDependencies" : {},
28
30
"bugs" : {
29
31
"url" : " https://github.com/mochixuan/react-native-drag-sort/issues"
30
32
},
31
- "homepage" : " https://github.com/mochixuan/react-native-drag-sort#readme"
33
+ "homepage" : " https://github.com/mochixuan/react-native-drag-sort#readme" ,
34
+ "harmony" : {
35
+ "alias" : " react-native-drag-sort"
36
+ }
32
37
}
You can’t perform that action at this time.
0 commit comments