react-native-reorderable-list 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -9
- package/lib/commonjs/components/NestedReorderableList.js +2 -0
- package/lib/commonjs/components/NestedReorderableList.js.map +1 -1
- package/lib/commonjs/components/ReorderableList.js +4 -3
- package/lib/commonjs/components/ReorderableList.js.map +1 -1
- package/lib/commonjs/components/{ReorderableListCore/useReorderableListCore.js → ReorderableListCore.js} +187 -96
- package/lib/commonjs/components/ReorderableListCore.js.map +1 -0
- package/lib/commonjs/components/ScrollViewContainer.js +26 -7
- package/lib/commonjs/components/ScrollViewContainer.js.map +1 -1
- package/lib/commonjs/components/{ReorderableListCore/animationDefaults.js → constants.js} +26 -2
- package/lib/commonjs/components/constants.js.map +1 -0
- package/lib/commonjs/contexts/ScrollViewContainerContext.js.map +1 -1
- package/lib/module/components/NestedReorderableList.js +2 -0
- package/lib/module/components/NestedReorderableList.js.map +1 -1
- package/lib/module/components/ReorderableList.js +4 -3
- package/lib/module/components/ReorderableList.js.map +1 -1
- package/lib/module/components/{ReorderableListCore/useReorderableListCore.js → ReorderableListCore.js} +188 -95
- package/lib/module/components/ReorderableListCore.js.map +1 -0
- package/lib/module/components/ScrollViewContainer.js +28 -8
- package/lib/module/components/ScrollViewContainer.js.map +1 -1
- package/lib/module/components/constants.js +52 -0
- package/lib/module/components/constants.js.map +1 -0
- package/lib/module/contexts/ScrollViewContainerContext.js.map +1 -1
- package/lib/typescript/components/NestedReorderableList.d.ts.map +1 -1
- package/lib/typescript/components/ReorderableList.d.ts.map +1 -1
- package/lib/typescript/components/{ReorderableListCore/ReorderableListCore.d.ts → ReorderableListCore.d.ts} +2 -1
- package/lib/typescript/components/ReorderableListCore.d.ts.map +1 -0
- package/lib/typescript/components/ScrollViewContainer.d.ts +2 -1
- package/lib/typescript/components/ScrollViewContainer.d.ts.map +1 -1
- package/lib/typescript/components/{ReorderableListCore/animationDefaults.d.ts → constants.d.ts} +6 -1
- package/lib/typescript/components/constants.d.ts.map +1 -0
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts +1 -0
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts.map +1 -1
- package/lib/typescript/types/props.d.ts +9 -0
- package/lib/typescript/types/props.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/NestedReorderableList.tsx +2 -0
- package/src/components/ReorderableList.tsx +3 -2
- package/src/components/{ReorderableListCore/useReorderableListCore.ts → ReorderableListCore.tsx} +321 -184
- package/src/components/ScrollViewContainer.tsx +44 -13
- package/src/components/{ReorderableListCore/animationDefaults.ts → constants.ts} +34 -0
- package/src/contexts/ScrollViewContainerContext.ts +1 -0
- package/src/types/props.ts +9 -0
- package/lib/commonjs/components/ReorderableListCore/ReorderableListCore.js +0 -121
- package/lib/commonjs/components/ReorderableListCore/ReorderableListCore.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/animationDefaults.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/autoscrollConfig.js +0 -31
- package/lib/commonjs/components/ReorderableListCore/autoscrollConfig.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/index.js +0 -17
- package/lib/commonjs/components/ReorderableListCore/index.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/useReorderableListCore.js.map +0 -1
- package/lib/module/components/ReorderableListCore/ReorderableListCore.js +0 -114
- package/lib/module/components/ReorderableListCore/ReorderableListCore.js.map +0 -1
- package/lib/module/components/ReorderableListCore/animationDefaults.js +0 -28
- package/lib/module/components/ReorderableListCore/animationDefaults.js.map +0 -1
- package/lib/module/components/ReorderableListCore/autoscrollConfig.js +0 -25
- package/lib/module/components/ReorderableListCore/autoscrollConfig.js.map +0 -1
- package/lib/module/components/ReorderableListCore/index.js +0 -2
- package/lib/module/components/ReorderableListCore/index.js.map +0 -1
- package/lib/module/components/ReorderableListCore/useReorderableListCore.js.map +0 -1
- package/lib/typescript/components/ReorderableListCore/ReorderableListCore.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/animationDefaults.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/autoscrollConfig.d.ts +0 -6
- package/lib/typescript/components/ReorderableListCore/autoscrollConfig.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/index.d.ts +0 -2
- package/lib/typescript/components/ReorderableListCore/index.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts +0 -183
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts.map +0 -1
- package/src/components/ReorderableListCore/ReorderableListCore.tsx +0 -175
- package/src/components/ReorderableListCore/autoscrollConfig.ts +0 -31
- package/src/components/ReorderableListCore/index.ts +0 -1
package/README.md
CHANGED
|
@@ -25,7 +25,8 @@ A reorderable list for React Native applications, powered by Reanimated 🚀
|
|
|
25
25
|
- [useIsActive](#useisactive)
|
|
26
26
|
- [Utils](#utils)
|
|
27
27
|
- [Troubleshooting](#troubleshooting)
|
|
28
|
-
- [
|
|
28
|
+
- [Navigation Gestures](#navigation-gestures)
|
|
29
|
+
- [Refresh Control](#refresh-control)
|
|
29
30
|
- [Example](#example)
|
|
30
31
|
- [License](#license)
|
|
31
32
|
|
|
@@ -66,8 +67,7 @@ This component uses a [FlatList](https://reactnative.dev/docs/flatlist) and it e
|
|
|
66
67
|
| animationDuration | `number` | No | `200` | Duration of the animations in milliseconds. Users won't be able to drag a new item until the dragged item is released and its animation to its new position ends. |
|
|
67
68
|
| cellAnimations | `ReorderableListCellAnimations` | No | N/A | Allows passing an object with values and/or shared values that can animate a cell, for example by using the `onDragStart` and `onDragEnd` events. Supports view style properties. Override opacity and/or transform to disable the default animation, e.g. `{opacity: 1, transform: []}`. Check the [examples](https://github.com/omahili/react-native-reorderable-list/tree/master/example) for more details. |
|
|
68
69
|
| shouldUpdateActiveItem | boolean | No | `false` | Whether the active item should be updated. Enables usage of `useIsActive` hook. |
|
|
69
|
-
|
|
|
70
|
-
| panActivateAfterLongPress | `number` | No | N/A | Duration in milliseconds of the long press on the list before the pan gesture for dragging is allowed to activate. |
|
|
70
|
+
| panGesture | `PanGesture` | No | N/A | Custom instance of pan gesture. See [GestureHandler docs](https://docs.swmansion.com/react-native-gesture-handler) for further info. |
|
|
71
71
|
| onReorder | `(event: { from: number, to: number }) => void` | Yes | N/A | Event fired after an item is released and the list is reordered. |
|
|
72
72
|
| onDragStart | `(event: { index: number }) => void` | No | N/A | Event fired when an item is dragged. Needs to be a `worklet`. See [Reanimated docs](https://docs.swmansion.com/react-native-reanimated) for further info. |
|
|
73
73
|
| onDragEnd | `(event: { from: number, to: number }) => void` | No | N/A | Event fired when the dragged item is released. Needs to be a `worklet`. See [Reanimated docs](https://docs.swmansion.com/react-native-reanimated) for further info. |
|
|
@@ -165,15 +165,73 @@ Additionally this hook requires setting `shouldUpdateActiveItem` to true on the
|
|
|
165
165
|
|
|
166
166
|
## Troubleshooting
|
|
167
167
|
|
|
168
|
-
###
|
|
168
|
+
### Navigation Gestures
|
|
169
169
|
|
|
170
|
-
If you
|
|
170
|
+
If you'd like to allow for gesture-based navigation, such as swiping to go back, there are several ways to do it when working with reorderable list. You can delay the activation of pan gestures necessary for dragging items by setting the `activateAfterLongPress` on pan gesture. This duration should be slightly longer than the long press delay necessary to drag your items. If you're using Pressable the `delayLongPress` is 500 ms by default.
|
|
171
171
|
|
|
172
172
|
```typescript
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
import {Gesture} from 'react-native-gesture-handler';
|
|
174
|
+
|
|
175
|
+
const panGesture = useMemo(() => Gesture.Pan().activateAfterLongPress(520), []);
|
|
176
|
+
|
|
177
|
+
return (
|
|
178
|
+
<ReorderableList
|
|
179
|
+
// ...
|
|
180
|
+
panGesture={panGesture}
|
|
181
|
+
/>
|
|
182
|
+
);
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Another solution is to set a bigger activation offset on the x axis:
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
import {Gesture} from 'react-native-gesture-handler';
|
|
189
|
+
|
|
190
|
+
// If it doesn't work try with bigger values.
|
|
191
|
+
const panGesture = useMemo(
|
|
192
|
+
() => Gesture.Pan().activeOffsetX([-20, 20]).activeOffsetY(0),
|
|
193
|
+
[],
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
return (
|
|
197
|
+
<ReorderableList
|
|
198
|
+
// ...
|
|
199
|
+
panGesture={panGesture}
|
|
200
|
+
/>
|
|
201
|
+
);
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
One more way is to set a negative hit slop, however keep in mind that this will disable drag starts from the sides of your reorderable items:
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
import {Gesture} from 'react-native-gesture-handler';
|
|
208
|
+
|
|
209
|
+
// If it doesn't work try with bigger values.
|
|
210
|
+
const panGesture = useMemo(() => Gesture.Pan().hitSlop(-10), []);
|
|
211
|
+
|
|
212
|
+
return (
|
|
213
|
+
<ReorderableList
|
|
214
|
+
// ...
|
|
215
|
+
panGesture={panGesture}
|
|
216
|
+
/>
|
|
217
|
+
);
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Refresh Control
|
|
221
|
+
|
|
222
|
+
If you want to use RefreshControl with ReorderableList you might encounter some issues on Android, where gestures are conflicting making one or both of the components non responsive. To overcome this issues you can delay the activation of pan gestures necessary for dragging items by setting the `activateAfterLongPress` on pan gesture. This duration should be slightly longer than the long press delay necessary to drag your items. If you're using Pressable the `delayLongPress` is 500 ms by default.
|
|
223
|
+
|
|
224
|
+
```typescript
|
|
225
|
+
import {Gesture} from 'react-native-gesture-handler';
|
|
226
|
+
|
|
227
|
+
const panGesture = useMemo(() => Gesture.Pan().activateAfterLongPress(520), []);
|
|
228
|
+
|
|
229
|
+
return (
|
|
230
|
+
<ReorderableList
|
|
231
|
+
// ...
|
|
232
|
+
panGesture={panGesture}
|
|
233
|
+
/>
|
|
234
|
+
);
|
|
177
235
|
```
|
|
178
236
|
|
|
179
237
|
If you change `delayLongPress` on your Pressable, update this prop accordingly.
|
|
@@ -272,6 +330,8 @@ const Example = () => {
|
|
|
272
330
|
data={data}
|
|
273
331
|
onReorder={handleReorder}
|
|
274
332
|
renderItem={renderItem}
|
|
333
|
+
// IMPORTANT: Do not use the current index as key.
|
|
334
|
+
// Always use a stable and unique key for each item.
|
|
275
335
|
keyExtractor={item => item.id}
|
|
276
336
|
/>
|
|
277
337
|
);
|
|
@@ -19,6 +19,7 @@ const NestedReorderableListWithRef = ({
|
|
|
19
19
|
const {
|
|
20
20
|
scrollViewContainerRef,
|
|
21
21
|
scrollViewScrollOffsetY,
|
|
22
|
+
scrollViewPageY,
|
|
22
23
|
scrollViewHeightY,
|
|
23
24
|
scrollViewScrollEnabled,
|
|
24
25
|
outerScrollGesture,
|
|
@@ -28,6 +29,7 @@ const NestedReorderableListWithRef = ({
|
|
|
28
29
|
ref: ref,
|
|
29
30
|
scrollViewContainerRef: scrollViewContainerRef,
|
|
30
31
|
scrollViewScrollOffsetY: scrollViewScrollOffsetY,
|
|
32
|
+
scrollViewPageY: scrollViewPageY,
|
|
31
33
|
scrollViewHeightY: scrollViewHeightY,
|
|
32
34
|
outerScrollGesture: outerScrollGesture,
|
|
33
35
|
scrollViewScrollEnabled: scrollViewScrollEnabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_ReorderableListCore","_contexts","_hooks","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","NestedReorderableListWithRef","scrollable","scrollEnabled","rest","ref","scrollViewContainerRef","scrollViewScrollOffsetY","scrollViewHeightY","scrollViewScrollEnabled","outerScrollGesture","initialScrollViewScrollEnabled","useContext","ScrollViewContainerContext","createElement","ReorderableListCore","nestedScrollEnabled","NestedReorderableList","exports","forwardRef"],"sourceRoot":"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A,EAAAQ,CAAA,GAAAA,CAAA;AAAA,SAAAW,SAAA,WAAAA,QAAA,GAAAR,MAAA,CAAAS,MAAA,GAAAT,MAAA,CAAAS,MAAA,CAAAC,IAAA,eAAAb,CAAA,aAAAR,CAAA,MAAAA,CAAA,GAAAsB,SAAA,CAAAC,MAAA,EAAAvB,CAAA,UAAAG,CAAA,GAAAmB,SAAA,CAAAtB,CAAA,YAAAE,CAAA,IAAAC,CAAA,OAAAY,cAAA,CAAAC,IAAA,CAAAb,CAAA,EAAAD,CAAA,MAAAM,CAAA,CAAAN,CAAA,IAAAC,CAAA,CAAAD,CAAA,aAAAM,CAAA,KAAAW,QAAA,CAAAK,KAAA,OAAAF,SAAA;AAGpC,MAAMG,4BAA4B,GAAGA,CACnC;EAACC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAE,GAAGC;AAAmC,CAAC,EAC1EC,GAAqC,KAClC;EACH,MAAM;IACJC,sBAAsB;IACtBC,uBAAuB;IACvBC,iBAAiB;IACjBC,uBAAuB;IACvBC,kBAAkB;IAClBC;EACF,CAAC,GAAG,IAAAC,iBAAU,EAACC,oCAA0B,CAAC;EAE1C,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ReorderableListCore","_contexts","_hooks","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","NestedReorderableListWithRef","scrollable","scrollEnabled","rest","ref","scrollViewContainerRef","scrollViewScrollOffsetY","scrollViewPageY","scrollViewHeightY","scrollViewScrollEnabled","outerScrollGesture","initialScrollViewScrollEnabled","useContext","ScrollViewContainerContext","createElement","ReorderableListCore","nestedScrollEnabled","NestedReorderableList","exports","forwardRef"],"sourceRoot":"../../../src","sources":["components/NestedReorderableList.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,oBAA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#__PURE__*/_react.default.createElement(_ReorderableListCore.ReorderableListCore, _extends({}, rest, {
|
|
16
16
|
ref: ref,
|
|
17
17
|
scrollEnabled: scrollEnabled,
|
|
18
|
-
initialScrollViewScrollEnabled: true,
|
|
19
|
-
scrollable: true,
|
|
20
18
|
scrollViewContainerRef: undefined,
|
|
21
19
|
scrollViewScrollOffsetY: undefined,
|
|
20
|
+
scrollViewPageY: undefined,
|
|
22
21
|
scrollViewHeightY: undefined,
|
|
23
22
|
outerScrollGesture: undefined,
|
|
24
|
-
scrollViewScrollEnabled: undefined
|
|
23
|
+
scrollViewScrollEnabled: undefined,
|
|
24
|
+
initialScrollViewScrollEnabled: true,
|
|
25
|
+
scrollable: true
|
|
25
26
|
}));
|
|
26
27
|
const ReorderableList = exports.ReorderableList = /*#__PURE__*/(0, _react.forwardRef)(ReorderableListWithRef);
|
|
27
28
|
//# sourceMappingURL=ReorderableList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_ReorderableListCore","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","ReorderableListWithRef","scrollEnabled","rest","ref","createElement","ReorderableListCore","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ReorderableListCore","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","ReorderableListWithRef","scrollEnabled","rest","ref","createElement","ReorderableListCore","scrollViewContainerRef","undefined","scrollViewScrollOffsetY","scrollViewPageY","scrollViewHeightY","outerScrollGesture","scrollViewScrollEnabled","initialScrollViewScrollEnabled","scrollable","ReorderableList","exports","forwardRef"],"sourceRoot":"../../../src","sources":["components/ReorderableList.tsx"],"mappings":";;;;;;AAAA,IAA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