react-native-drax 0.11.0-alpha.2 → 1.1.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/LICENSE.md +1 -1
- package/README.md +390 -227
- package/lib/module/DebugOverlay.js +121 -0
- package/lib/module/DebugOverlay.js.map +1 -0
- package/lib/module/Drax.js +36 -0
- package/lib/module/Drax.js.map +1 -0
- package/lib/module/DraxContext.js +6 -0
- package/lib/module/DraxContext.js.map +1 -0
- package/lib/module/DraxHandle.js +47 -0
- package/lib/module/DraxHandle.js.map +1 -0
- package/lib/module/DraxHandleContext.js +11 -0
- package/lib/module/DraxHandleContext.js.map +1 -0
- package/lib/module/DraxList.js +108 -0
- package/lib/module/DraxList.js.map +1 -0
- package/lib/module/DraxProvider.js +203 -0
- package/lib/module/DraxProvider.js.map +1 -0
- package/lib/module/DraxScrollView.js +167 -0
- package/lib/module/DraxScrollView.js.map +1 -0
- package/lib/module/DraxSubprovider.js +21 -0
- package/lib/module/DraxSubprovider.js.map +1 -0
- package/lib/module/DraxView.js +348 -0
- package/lib/module/DraxView.js.map +1 -0
- package/lib/module/HoverLayer.js +152 -0
- package/lib/module/HoverLayer.js.map +1 -0
- package/lib/module/SortableBoardContainer.js +386 -0
- package/lib/module/SortableBoardContainer.js.map +1 -0
- package/lib/module/SortableBoardContext.js +6 -0
- package/lib/module/SortableBoardContext.js.map +1 -0
- package/lib/module/SortableContainer.js +571 -0
- package/lib/module/SortableContainer.js.map +1 -0
- package/lib/module/SortableItem.js +226 -0
- package/lib/module/SortableItem.js.map +1 -0
- package/lib/module/SortableItemContext.js +38 -0
- package/lib/module/SortableItemContext.js.map +1 -0
- package/lib/module/compat/detectVersion.js +19 -0
- package/lib/module/compat/detectVersion.js.map +1 -0
- package/lib/module/compat/index.js +5 -0
- package/lib/module/compat/index.js.map +1 -0
- package/lib/module/compat/types.js +4 -0
- package/lib/module/compat/types.js.map +1 -0
- package/lib/module/compat/useDraxPanGesture.js +94 -0
- package/lib/module/compat/useDraxPanGesture.js.map +1 -0
- package/lib/module/hooks/index.js +5 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useCallbackDispatch.js +688 -0
- package/lib/module/hooks/useCallbackDispatch.js.map +1 -0
- package/lib/module/hooks/useDragGesture.js +240 -0
- package/lib/module/hooks/useDragGesture.js.map +1 -0
- package/lib/module/hooks/useDraxContext.js +12 -0
- package/lib/module/hooks/useDraxContext.js.map +1 -0
- package/lib/module/hooks/useDraxId.js +13 -0
- package/lib/module/hooks/useDraxId.js.map +1 -0
- package/lib/module/hooks/useDraxMethods.js +73 -0
- package/lib/module/hooks/useDraxMethods.js.map +1 -0
- package/lib/module/hooks/useDraxScrollHandler.js +97 -0
- package/lib/module/hooks/useDraxScrollHandler.js.map +1 -0
- package/lib/module/hooks/useSortableBoard.js +37 -0
- package/lib/module/hooks/useSortableBoard.js.map +1 -0
- package/lib/module/hooks/useSortableList.js +988 -0
- package/lib/module/hooks/useSortableList.js.map +1 -0
- package/lib/module/hooks/useSpatialIndex.js +283 -0
- package/lib/module/hooks/useSpatialIndex.js.map +1 -0
- package/lib/module/hooks/useViewStyles.js +158 -0
- package/lib/module/hooks/useViewStyles.js.map +1 -0
- package/lib/module/hooks/useWebScrollFreeze.js +52 -0
- package/lib/module/hooks/useWebScrollFreeze.js.map +1 -0
- package/lib/module/index.js +37 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/math.js +294 -0
- package/lib/module/math.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/params.js +88 -0
- package/lib/module/params.js.map +1 -0
- package/lib/module/types.js +215 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/DebugOverlay.d.ts +17 -0
- package/lib/typescript/src/DebugOverlay.d.ts.map +1 -0
- package/lib/typescript/src/Drax.d.ts +28 -0
- package/lib/typescript/src/Drax.d.ts.map +1 -0
- package/lib/typescript/src/DraxContext.d.ts +3 -0
- package/lib/typescript/src/DraxContext.d.ts.map +1 -0
- package/lib/typescript/src/DraxHandle.d.ts +25 -0
- package/lib/typescript/src/DraxHandle.d.ts.map +1 -0
- package/lib/typescript/src/DraxHandleContext.d.ts +12 -0
- package/lib/typescript/src/DraxHandleContext.d.ts.map +1 -0
- package/lib/typescript/src/DraxList.d.ts +66 -0
- package/lib/typescript/src/DraxList.d.ts.map +1 -0
- package/lib/typescript/src/DraxProvider.d.ts +4 -0
- package/lib/typescript/src/DraxProvider.d.ts.map +1 -0
- package/lib/typescript/src/DraxScrollView.d.ts +7 -0
- package/lib/typescript/src/DraxScrollView.d.ts.map +1 -0
- package/lib/typescript/src/DraxSubprovider.d.ts +4 -0
- package/lib/typescript/src/DraxSubprovider.d.ts.map +1 -0
- package/lib/typescript/src/DraxView.d.ts +4 -0
- package/lib/typescript/src/DraxView.d.ts.map +1 -0
- package/lib/typescript/src/HoverLayer.d.ts +38 -0
- package/lib/typescript/src/HoverLayer.d.ts.map +1 -0
- package/lib/typescript/src/SortableBoardContainer.d.ts +11 -0
- package/lib/typescript/src/SortableBoardContainer.d.ts.map +1 -0
- package/lib/typescript/src/SortableBoardContext.d.ts +4 -0
- package/lib/typescript/src/SortableBoardContext.d.ts.map +1 -0
- package/lib/typescript/src/SortableContainer.d.ts +13 -0
- package/lib/typescript/src/SortableContainer.d.ts.map +1 -0
- package/lib/typescript/src/SortableItem.d.ts +14 -0
- package/lib/typescript/src/SortableItem.d.ts.map +1 -0
- package/lib/typescript/src/SortableItemContext.d.ts +37 -0
- package/lib/typescript/src/SortableItemContext.d.ts.map +1 -0
- package/lib/typescript/src/compat/detectVersion.d.ts +2 -0
- package/lib/typescript/src/compat/detectVersion.d.ts.map +1 -0
- package/lib/typescript/src/compat/index.d.ts +4 -0
- package/lib/typescript/src/compat/index.d.ts.map +1 -0
- package/lib/typescript/src/compat/types.d.ts +33 -0
- package/lib/typescript/src/compat/types.d.ts.map +1 -0
- package/lib/typescript/src/compat/useDraxPanGesture.d.ts +8 -0
- package/lib/typescript/src/compat/useDraxPanGesture.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +3 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCallbackDispatch.d.ts +40 -0
- package/lib/typescript/src/hooks/useCallbackDispatch.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDragGesture.d.ts +17 -0
- package/lib/typescript/src/hooks/useDragGesture.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDraxContext.d.ts +2 -0
- package/lib/typescript/src/hooks/useDraxContext.d.ts.map +1 -0
- package/{build → lib/typescript/src}/hooks/useDraxId.d.ts +1 -0
- package/lib/typescript/src/hooks/useDraxId.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDraxMethods.d.ts +13 -0
- package/lib/typescript/src/hooks/useDraxMethods.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDraxScrollHandler.d.ts +27 -0
- package/lib/typescript/src/hooks/useDraxScrollHandler.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSortableBoard.d.ts +10 -0
- package/lib/typescript/src/hooks/useSortableBoard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSortableList.d.ts +11 -0
- package/lib/typescript/src/hooks/useSortableList.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSpatialIndex.d.ts +22 -0
- package/lib/typescript/src/hooks/useSpatialIndex.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useViewStyles.d.ts +183 -0
- package/lib/typescript/src/hooks/useViewStyles.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useWebScrollFreeze.d.ts +14 -0
- package/lib/typescript/src/hooks/useWebScrollFreeze.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +25 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/math.d.ts +76 -0
- package/lib/typescript/src/math.d.ts.map +1 -0
- package/{build → lib/typescript/src}/params.d.ts +13 -9
- package/lib/typescript/src/params.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +756 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +164 -34
- package/src/DebugOverlay.tsx +140 -0
- package/src/Drax.ts +33 -0
- package/src/DraxContext.ts +8 -0
- package/src/DraxHandle.tsx +52 -0
- package/src/DraxHandleContext.ts +15 -0
- package/src/DraxList.tsx +181 -0
- package/src/DraxProvider.tsx +224 -0
- package/src/DraxScrollView.tsx +180 -0
- package/src/DraxSubprovider.tsx +22 -0
- package/src/DraxView.tsx +430 -0
- package/src/HoverLayer.tsx +167 -0
- package/src/SortableBoardContainer.tsx +439 -0
- package/src/SortableBoardContext.ts +6 -0
- package/src/SortableContainer.tsx +650 -0
- package/src/SortableItem.tsx +264 -0
- package/src/SortableItemContext.ts +46 -0
- package/src/compat/detectVersion.ts +17 -0
- package/src/compat/index.ts +7 -0
- package/src/compat/types.ts +35 -0
- package/src/compat/useDraxPanGesture.ts +112 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useCallbackDispatch.tsx +830 -0
- package/src/hooks/useDragGesture.ts +273 -0
- package/src/hooks/useDraxContext.ts +11 -0
- package/src/hooks/useDraxId.ts +11 -0
- package/src/hooks/useDraxMethods.ts +71 -0
- package/src/hooks/useDraxScrollHandler.ts +121 -0
- package/src/hooks/useSortableBoard.ts +44 -0
- package/src/hooks/useSortableList.ts +1063 -0
- package/src/hooks/useSpatialIndex.ts +336 -0
- package/src/hooks/useViewStyles.ts +180 -0
- package/src/hooks/useWebScrollFreeze.ts +60 -0
- package/src/index.ts +111 -0
- package/src/math.ts +333 -0
- package/src/params.ts +74 -0
- package/src/types.ts +933 -0
- package/.editorconfig +0 -15
- package/.eslintrc.js +0 -4
- package/.prettierrc +0 -16
- package/CHANGELOG.md +0 -270
- package/CODE-OF-CONDUCT.md +0 -85
- package/CONTRIBUTING.md +0 -15
- package/FUNDING.yml +0 -4
- package/build/AllHoverViews.d.ts +0 -0
- package/build/AllHoverViews.js +0 -30
- package/build/DraxContext.d.ts +0 -2
- package/build/DraxContext.js +0 -6
- package/build/DraxList.d.ts +0 -8
- package/build/DraxList.js +0 -512
- package/build/DraxListItem.d.ts +0 -7
- package/build/DraxListItem.js +0 -121
- package/build/DraxProvider.d.ts +0 -2
- package/build/DraxProvider.js +0 -704
- package/build/DraxScrollView.d.ts +0 -6
- package/build/DraxScrollView.js +0 -136
- package/build/DraxSubprovider.d.ts +0 -3
- package/build/DraxSubprovider.js +0 -18
- package/build/DraxView.d.ts +0 -8
- package/build/DraxView.js +0 -93
- package/build/HoverView.d.ts +0 -8
- package/build/HoverView.js +0 -40
- package/build/PanGestureDetector.d.ts +0 -3
- package/build/PanGestureDetector.js +0 -49
- package/build/hooks/index.d.ts +0 -4
- package/build/hooks/index.js +0 -11
- package/build/hooks/useContent.d.ts +0 -23
- package/build/hooks/useContent.js +0 -212
- package/build/hooks/useDraxContext.d.ts +0 -1
- package/build/hooks/useDraxContext.js +0 -13
- package/build/hooks/useDraxId.js +0 -13
- package/build/hooks/useDraxProtocol.d.ts +0 -5
- package/build/hooks/useDraxProtocol.js +0 -32
- package/build/hooks/useDraxRegistry.d.ts +0 -78
- package/build/hooks/useDraxRegistry.js +0 -714
- package/build/hooks/useDraxScrollHandler.d.ts +0 -25
- package/build/hooks/useDraxScrollHandler.js +0 -89
- package/build/hooks/useDraxState.d.ts +0 -10
- package/build/hooks/useDraxState.js +0 -132
- package/build/hooks/useMeasurements.d.ts +0 -9
- package/build/hooks/useMeasurements.js +0 -119
- package/build/hooks/useStatus.d.ts +0 -11
- package/build/hooks/useStatus.js +0 -96
- package/build/index.d.ts +0 -9
- package/build/index.js +0 -33
- package/build/math.d.ts +0 -22
- package/build/math.js +0 -68
- package/build/params.js +0 -27
- package/build/transform.d.ts +0 -11
- package/build/transform.js +0 -59
- package/build/types.d.ts +0 -807
- package/build/types.js +0 -46
- package/docs/concept.md +0 -79
- package/docs/images/color-drag-drop.gif +0 -0
- package/docs/images/deck-cards.gif +0 -0
- package/docs/images/drag-drop-events.jpg +0 -0
- package/docs/images/knight-moves.gif +0 -0
- package/docs/images/reorderable-list.gif +0 -0
package/README.md
CHANGED
|
@@ -1,291 +1,454 @@
|
|
|
1
1
|
# react-native-drax
|
|
2
2
|
|
|
3
|
-
**A drag-and-drop system for React Native**
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
[](https://reactnative.dev/)
|
|
5
|
+
[](https://expo.dev/)
|
|
6
|
+
[](https://necolas.github.io/react-native-web/)
|
|
7
|
+
[](https://github.com/nuclearpasta/react-native-drax/search?l=typescript)
|
|
8
|
+
[](https://github.com/nuclearpasta/react-native-drax/actions/workflows/ci.yml)
|
|
9
|
+
[](https://github.com/nuclearpasta/react-native-drax/blob/main/LICENSE.md)
|
|
10
|
+
[](https://www.npmjs.com/package/react-native-drax)
|
|
6
11
|
|
|
7
|
-
[](https://badge.fury.io/js/react-native-drax)
|
|
8
|
-
[](CODE-OF-CONDUCT.md)
|
|
9
12
|
|
|
10
|
-
## Overview
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
📚 [**Visit the official documentation**](https://nuclearpasta.com/react-native-drax)
|
|
13
15
|
|
|
14
|
-
**
|
|
16
|
+
🎮 [**See the live example**](https://nuclearpasta.com/react-native-drax/example)
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
## 📖 Overview
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
Drax is a declarative drag-and-drop framework for React Native, written in TypeScript. It supports free-form drag-and-drop, sortable lists and grids, cross-list reorder, drag handles, collision algorithms, and more.
|
|
19
21
|
|
|
20
|
-
-
|
|
21
|
-
- Enhanced animation performance and capabilities
|
|
22
|
-
- Works with New Architecture
|
|
22
|
+
Built on [Reanimated 4](https://docs.swmansion.com/react-native-reanimated/) and [Gesture Handler 3](https://docs.swmansion.com/react-native-gesture-handler/) with a UI-thread-first architecture for smooth 60fps interactions.
|
|
23
23
|
|
|
24
|
-
**
|
|
24
|
+
**Platforms:** iOS, Android, Web
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
### ✨ Highlights
|
|
27
|
+
|
|
28
|
+
- 📋 **List-agnostic sortable** — works with FlatList, FlashList, LegendList, or any list component
|
|
29
|
+
- 🔀 **Cross-container drag** — move items between lists (cross-list reorder)
|
|
30
|
+
- ⚡ **UI-thread hit-testing** — spatial index worklet for fast receiver detection
|
|
31
|
+
- ✊ **Drag handles** — only the handle starts a drag, the rest scrolls
|
|
32
|
+
- 💥 **Collision algorithms** — center, intersect, or contain
|
|
33
|
+
- 📐 **Drag bounds** — constrain drags within a view
|
|
34
|
+
- 🎨 **Hover styles** — conditional styles based on drag phase and receiver state
|
|
35
|
+
- 🚫 **Drop zone acceptance** — accept or reject drops with `acceptsDrag`
|
|
36
|
+
- 🎬 **Animation presets** — default, spring, gentle, snappy, none — or custom config
|
|
37
|
+
- 🧲 **Snap alignment** — snap to 9-point alignment within receivers
|
|
38
|
+
- ♿ **Accessibility** — auto-generated labels, reduced motion support
|
|
39
|
+
- 📡 **19 callback events** — full drag lifecycle control
|
|
40
|
+
- 🏗️ **New Architecture** compatible (Fabric)
|
|
41
|
+
|
|
42
|
+
### 🤔 Why Drax?
|
|
43
|
+
|
|
44
|
+
| Feature | Drax | reanimated-dnd | sortables |
|
|
45
|
+
|---|:---:|:---:|:---:|
|
|
46
|
+
| Free-form drag & drop | ✅ | ✅ | ➖ |
|
|
47
|
+
| Sortable list / grid | ✅ | ✅ | ✅ |
|
|
48
|
+
| Mixed-size grid (non-uniform spans) | ✅ | ➖ | ➖ |
|
|
49
|
+
| Cross-container / cross-list reorder | ⚠️ Experimental | ➖ | ➖ |
|
|
50
|
+
| List-agnostic (FlatList, FlashList, LegendList) | ✅ | ➖ | ➖ |
|
|
51
|
+
| Drag handles | ✅ | ✅ | ✅ |
|
|
52
|
+
| Drag state styling | 15 props + inactive | onStateChange | 5 props + hook |
|
|
53
|
+
| Drop indicator | ✅ | ➖ | Grid only |
|
|
54
|
+
| UI-thread DnD collision | ✅ | ➖ | ➖ |
|
|
55
|
+
| Event callbacks | 19 types | ~12 types | ~10 types |
|
|
56
|
+
| Accessibility + reduced motion | ✅ | Manual | Manual |
|
|
57
|
+
| Web support | ✅ | ➖ | Partial |
|
|
58
|
+
| Reanimated | ≥ 4 | ≥ 4.2 | ≥ 3 |
|
|
59
|
+
| Gesture Handler | ≥ 2 | ≥ 2.28 | ≥ 2 |
|
|
60
|
+
|
|
61
|
+
[See full comparison →](https://nuclearpasta.com/react-native-drax#comparison)
|
|
29
62
|
|
|
30
|
-
|
|
31
|
-
|
|
63
|
+
## 📦 Installation
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npm install react-native-drax
|
|
67
|
+
# or
|
|
68
|
+
yarn add react-native-drax
|
|
32
69
|
```
|
|
33
70
|
|
|
34
|
-
|
|
71
|
+
### 🔗 Peer Dependencies
|
|
35
72
|
|
|
36
73
|
```bash
|
|
37
|
-
|
|
74
|
+
npm install react-native-reanimated react-native-gesture-handler
|
|
38
75
|
```
|
|
39
76
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
## Status
|
|
72
|
-
|
|
73
|
-
This library adheres to [Semantic Versioning (semver)](https://semver.org/) and is in its [0.y.z initial development phase](https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase). It has been released so that early adopters (such as the project author) can begin to use it in production and identify gaps in the functionality. The API is subject to potentially significant rework until version 1.0.0 is released, and any minor version increment before then may include breaking changes. Documentation and full examples are still being written.
|
|
74
|
-
|
|
75
|
-
The author of this library has not had significant availability to work on it for quite a while now, due to higher priority life and work concerns. Newer versions of Drax's major dependencies have been released in that time, and many people have opened issues asking questions about usage and potential features. Relatively small fixes and easy questions are handled reasonably often, but ultimately another round of research, testing, and architecture are what would take this library to the next level of usability. It is not clear when that might happen, but [contributors are welcome](#contributing).
|
|
76
|
-
|
|
77
|
-
<a name="alpha-version-breaking-changes"></a>
|
|
78
|
-
## Alpha Version Breaking Changes
|
|
79
|
-
|
|
80
|
-
The experimental alpha version (v0.11.0) includes significant updates to modernize the library and improve performance. However, these changes introduce breaking changes, particularly to the `DraxList` component.
|
|
81
|
-
|
|
82
|
-
### DraxList Breaking Changes
|
|
83
|
-
|
|
84
|
-
- `renderItem` property signature receives different props than before and has replaced `renderItemContent` and `renderHoverContent`
|
|
85
|
-
- Receives incoming external drag items inside the list.
|
|
86
|
-
- Added `monitoringExternalDragStyle` prop for styling during incoming external drags
|
|
87
|
-
- `parentDraxViewProps` prop for customizing the parent DraxView wrapping the FlatList. You should use this prop if you were using the `style` prop on `DraxList`. (see example below)
|
|
88
|
-
|
|
89
|
-
### DraxListItem Component
|
|
90
|
-
|
|
91
|
-
The alpha version introduces a new `DraxListItem` component that works with `DraxList` to simplify implementation of reorderable lists. This component handles animations, measurement caching, and shift calculations internally.
|
|
92
|
-
|
|
93
|
-
#### Usage Example
|
|
94
|
-
|
|
95
|
-
```jsx
|
|
96
|
-
import { DraxList, DraxListItem } from 'react-native-drax';
|
|
97
|
-
|
|
98
|
-
const MyReorderableList = () => (
|
|
99
|
-
<DraxList
|
|
100
|
-
data={items}
|
|
101
|
-
// BREAKING CHANGE: `style` prop is now applied to internal FlatList, not to the parent DraxView
|
|
102
|
-
style={styles.list}
|
|
103
|
-
|
|
104
|
-
// should use this prop if you were using the `style` prop on `DraxList` on v0.10.3.
|
|
105
|
-
parentDraxViewProps={{
|
|
106
|
-
style: styles.list,
|
|
107
|
-
}}
|
|
108
|
-
renderItem={(info, itemProps) => (
|
|
109
|
-
<DraxListItem
|
|
110
|
-
itemProps={itemProps}
|
|
111
|
-
style={styles.listItem}
|
|
112
|
-
draggingStyle={styles.itemDragging}
|
|
113
|
-
dragReleasedStyle={styles.itemReleased}
|
|
114
|
-
// Any other DraxView props
|
|
115
|
-
>
|
|
116
|
-
<Text>{info.item.text}</Text>
|
|
117
|
-
</DraxListItem>
|
|
118
|
-
)}
|
|
119
|
-
onItemReorder={({fromIndex, toIndex}) => {
|
|
120
|
-
// Update your data here
|
|
121
|
-
const newData = [...items];
|
|
122
|
-
const item = newData.splice(fromIndex, 1)[0];
|
|
123
|
-
newData.splice(toIndex, 0, item);
|
|
124
|
-
setItems(newData);
|
|
125
|
-
}}
|
|
126
|
-
/>
|
|
127
|
-
);
|
|
77
|
+
| Peer Dependency | Version |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `react` | >= 18 |
|
|
80
|
+
| `react-native` | >= 0.68 |
|
|
81
|
+
| `react-native-reanimated` | ^4.0.0 |
|
|
82
|
+
| `react-native-gesture-handler` | >= 2.0.0 (v3 recommended) |
|
|
83
|
+
|
|
84
|
+
## 🚀 Quick Start
|
|
85
|
+
|
|
86
|
+
### 👋 Basic Drag-and-Drop
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
import { DraxProvider, DraxView } from 'react-native-drax';
|
|
90
|
+
|
|
91
|
+
function App() {
|
|
92
|
+
return (
|
|
93
|
+
<DraxProvider>
|
|
94
|
+
<DraxView
|
|
95
|
+
style={{ width: 100, height: 100, backgroundColor: 'blue' }}
|
|
96
|
+
onDragStart={() => console.log('dragging')}
|
|
97
|
+
payload="hello"
|
|
98
|
+
/>
|
|
99
|
+
<DraxView
|
|
100
|
+
style={{ width: 100, height: 100, backgroundColor: 'green' }}
|
|
101
|
+
onReceiveDragDrop={({ dragged: { payload } }) => {
|
|
102
|
+
console.log(`received: ${payload}`);
|
|
103
|
+
}}
|
|
104
|
+
/>
|
|
105
|
+
</DraxProvider>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
128
108
|
```
|
|
129
109
|
|
|
130
|
-
|
|
131
|
-
## Background
|
|
110
|
+
### 📋 Sortable List
|
|
132
111
|
|
|
133
|
-
|
|
112
|
+
The simplest way to make a reorderable list:
|
|
134
113
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
>
|
|
152
|
-
>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
> But beyond that, I wanted a robust foundation that could be
|
|
160
|
-
> used to flexibly implement various drag-and-drop-related
|
|
161
|
-
> solutions. I am sure that there are scenarios I have not
|
|
162
|
-
> yet considered, and I am open to input from other people
|
|
163
|
-
> who are working in this space.
|
|
114
|
+
```tsx
|
|
115
|
+
import { useState } from 'react';
|
|
116
|
+
import { Text, View } from 'react-native';
|
|
117
|
+
import { DraxProvider, DraxList } from 'react-native-drax';
|
|
118
|
+
|
|
119
|
+
function App() {
|
|
120
|
+
const [items, setItems] = useState(['A', 'B', 'C', 'D', 'E']);
|
|
121
|
+
|
|
122
|
+
return (
|
|
123
|
+
<DraxProvider>
|
|
124
|
+
<DraxList
|
|
125
|
+
data={items}
|
|
126
|
+
keyExtractor={(item) => item}
|
|
127
|
+
onReorder={({ data }) => setItems(data)}
|
|
128
|
+
renderItem={({ item }) => (
|
|
129
|
+
<View style={{ padding: 16, backgroundColor: '#eee', margin: 4 }}>
|
|
130
|
+
<Text>{item}</Text>
|
|
131
|
+
</View>
|
|
132
|
+
)}
|
|
133
|
+
/>
|
|
134
|
+
</DraxProvider>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
```
|
|
164
138
|
|
|
165
|
-
|
|
166
|
-
## Concept
|
|
139
|
+
`DraxList` is list-agnostic — pass any list component via the `component` prop:
|
|
167
140
|
|
|
168
|
-
|
|
141
|
+
```tsx
|
|
142
|
+
import { FlashList } from '@shopify/flash-list';
|
|
143
|
+
|
|
144
|
+
<DraxList
|
|
145
|
+
component={FlashList}
|
|
146
|
+
data={items}
|
|
147
|
+
keyExtractor={(item) => item.id}
|
|
148
|
+
onReorder={({ data }) => setItems(data)}
|
|
149
|
+
renderItem={({ item }) => <ItemCard item={item} />}
|
|
150
|
+
estimatedItemSize={60}
|
|
151
|
+
/>
|
|
152
|
+
```
|
|
169
153
|
|
|
170
|
-
|
|
171
|
-
## Installation
|
|
154
|
+
### 🧱 Composable API
|
|
172
155
|
|
|
173
|
-
|
|
156
|
+
For full control, use the composable primitives directly:
|
|
174
157
|
|
|
175
|
-
|
|
158
|
+
```tsx
|
|
159
|
+
import {
|
|
160
|
+
DraxProvider,
|
|
161
|
+
useSortableList,
|
|
162
|
+
SortableContainer,
|
|
163
|
+
SortableItem,
|
|
164
|
+
} from 'react-native-drax';
|
|
165
|
+
import { FlatList } from 'react-native';
|
|
166
|
+
|
|
167
|
+
function App() {
|
|
168
|
+
const [items, setItems] = useState(['A', 'B', 'C', 'D', 'E']);
|
|
169
|
+
const listRef = useRef<FlatList>(null);
|
|
170
|
+
|
|
171
|
+
const sortable = useSortableList({
|
|
172
|
+
data: items,
|
|
173
|
+
keyExtractor: (item) => item,
|
|
174
|
+
onReorder: ({ data }) => setItems(data),
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
return (
|
|
178
|
+
<DraxProvider>
|
|
179
|
+
<SortableContainer sortable={sortable} scrollRef={listRef}>
|
|
180
|
+
<FlatList
|
|
181
|
+
ref={listRef}
|
|
182
|
+
data={sortable.data}
|
|
183
|
+
keyExtractor={sortable.stableKeyExtractor}
|
|
184
|
+
onScroll={sortable.onScroll}
|
|
185
|
+
onContentSizeChange={sortable.onContentSizeChange}
|
|
186
|
+
renderItem={({ item, index }) => (
|
|
187
|
+
<SortableItem sortable={sortable} index={index}>
|
|
188
|
+
<Text>{item}</Text>
|
|
189
|
+
</SortableItem>
|
|
190
|
+
)}
|
|
191
|
+
/>
|
|
192
|
+
</SortableContainer>
|
|
193
|
+
</DraxProvider>
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
This pattern works with any list component — FlatList, FlashList, LegendList, ScrollView, etc.
|
|
176
199
|
|
|
177
|
-
|
|
200
|
+
## 🎛 Features
|
|
178
201
|
|
|
179
|
-
|
|
202
|
+
### ✊ Drag Handles
|
|
180
203
|
|
|
181
|
-
|
|
204
|
+
Only the handle area starts a drag — the rest of the view scrolls normally:
|
|
182
205
|
|
|
183
|
-
|
|
206
|
+
```tsx
|
|
207
|
+
import { DraxView, DraxHandle } from 'react-native-drax';
|
|
208
|
+
|
|
209
|
+
<DraxView dragHandle>
|
|
210
|
+
<Text>This content scrolls normally</Text>
|
|
211
|
+
<DraxHandle>
|
|
212
|
+
<GripIcon /> {/* Only this starts a drag */}
|
|
213
|
+
</DraxHandle>
|
|
214
|
+
</DraxView>
|
|
215
|
+
```
|
|
184
216
|
|
|
185
|
-
|
|
186
|
-
## Usage
|
|
217
|
+
### 📐 Drag Bounds
|
|
187
218
|
|
|
188
|
-
|
|
219
|
+
Constrain a dragged view within a boundary:
|
|
189
220
|
|
|
190
|
-
|
|
221
|
+
```tsx
|
|
222
|
+
const boundsRef = useRef<View>(null);
|
|
191
223
|
|
|
192
|
-
|
|
193
|
-
|
|
224
|
+
<View ref={boundsRef} style={{ flex: 1 }}>
|
|
225
|
+
<DraxView dragBoundsRef={boundsRef}>
|
|
226
|
+
<Text>I can only be dragged within the parent</Text>
|
|
227
|
+
</DraxView>
|
|
228
|
+
</View>
|
|
194
229
|
```
|
|
195
230
|
|
|
196
|
-
|
|
231
|
+
### 💥 Collision Algorithms
|
|
232
|
+
|
|
233
|
+
Control how receiver detection works:
|
|
197
234
|
|
|
198
235
|
```tsx
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
onReceiveDragExit={({ dragged: { payload } }) => {
|
|
214
|
-
console.log(`goodbye ${payload}`);
|
|
215
|
-
}}
|
|
216
|
-
onReceiveDragDrop={({ dragged: { payload } }) => {
|
|
217
|
-
console.log(`received ${payload}`);
|
|
218
|
-
}}
|
|
219
|
-
/>
|
|
220
|
-
</View>
|
|
221
|
-
</DraxProvider>
|
|
236
|
+
<DraxView collisionAlgorithm="center" /> {/* hover center inside receiver (default) */}
|
|
237
|
+
<DraxView collisionAlgorithm="intersect" /> {/* any overlap triggers receiving */}
|
|
238
|
+
<DraxView collisionAlgorithm="contain" /> {/* dragged view must be fully inside */}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### 🚫 Drop Zone Acceptance
|
|
242
|
+
|
|
243
|
+
Accept or reject drops conditionally:
|
|
244
|
+
|
|
245
|
+
```tsx
|
|
246
|
+
<DraxView
|
|
247
|
+
acceptsDrag={(draggedPayload) => items.length < 5}
|
|
248
|
+
onReceiveDragDrop={({ dragged }) => addItem(dragged.payload)}
|
|
249
|
+
/>
|
|
222
250
|
```
|
|
223
251
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
252
|
+
### 🎨 Hover Styles
|
|
253
|
+
|
|
254
|
+
Style the hover layer based on drag state:
|
|
255
|
+
|
|
256
|
+
```tsx
|
|
257
|
+
<DraxView
|
|
258
|
+
hoverStyle={{ opacity: 0.8 }}
|
|
259
|
+
hoverDraggingWithReceiverStyle={{ borderColor: 'green', borderWidth: 2 }}
|
|
260
|
+
hoverDraggingWithoutReceiverStyle={{ opacity: 0.5 }}
|
|
261
|
+
hoverDragReleasedStyle={{ opacity: 0.3 }}
|
|
262
|
+
/>
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### 🧲 Snap Alignment
|
|
266
|
+
|
|
267
|
+
Snap dropped items to specific positions within a receiver:
|
|
268
|
+
|
|
269
|
+
```tsx
|
|
270
|
+
import { snapToAlignment } from 'react-native-drax';
|
|
271
|
+
|
|
272
|
+
<DraxView
|
|
273
|
+
onReceiveDragDrop={({ dragged, receiver }) =>
|
|
274
|
+
snapToAlignment(receiver, dragged, 'top-left', { x: 8, y: 8 })
|
|
275
|
+
}
|
|
276
|
+
/>
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Alignments: `center`, `top-left`, `top-center`, `top-right`, `center-left`, `center-right`, `bottom-left`, `bottom-center`, `bottom-right`
|
|
280
|
+
|
|
281
|
+
### 🎬 Animation Presets
|
|
282
|
+
|
|
283
|
+
```tsx
|
|
284
|
+
<DraxList animationConfig="spring" /> {/* spring physics */}
|
|
285
|
+
<DraxList animationConfig="gentle" /> {/* soft spring */}
|
|
286
|
+
<DraxList animationConfig="snappy" /> {/* fast spring */}
|
|
287
|
+
<DraxList animationConfig="none" /> {/* instant */}
|
|
288
|
+
|
|
289
|
+
{/* Or custom: */}
|
|
290
|
+
<DraxList animationConfig={{
|
|
291
|
+
useSpring: true,
|
|
292
|
+
springDamping: 15,
|
|
293
|
+
springStiffness: 150,
|
|
294
|
+
springMass: 1,
|
|
295
|
+
}} />
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Device reduced motion settings are respected automatically.
|
|
299
|
+
|
|
300
|
+
### 📡 Continuous Drag Callbacks
|
|
301
|
+
|
|
302
|
+
```tsx
|
|
303
|
+
<DraxView
|
|
304
|
+
onDrag={(data) => { /* fires every frame while dragging over empty space */ }}
|
|
305
|
+
onDragOver={(data) => { /* fires every frame while over the same receiver */ }}
|
|
306
|
+
/>
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### 🔀 Cross-Container Sortable (Experimental)
|
|
310
|
+
|
|
311
|
+
Move items between lists (cross-list reorder):
|
|
312
|
+
|
|
313
|
+
```tsx
|
|
314
|
+
import {
|
|
315
|
+
useSortableBoard,
|
|
316
|
+
SortableBoardContainer,
|
|
317
|
+
useSortableList,
|
|
318
|
+
SortableContainer,
|
|
319
|
+
SortableItem,
|
|
320
|
+
} from 'react-native-drax';
|
|
321
|
+
|
|
322
|
+
const board = useSortableBoard({
|
|
323
|
+
onTransfer: ({ fromColumnId, toColumnId, fromIndex, toIndex, item }) => {
|
|
324
|
+
// Move item between columns
|
|
325
|
+
},
|
|
243
326
|
});
|
|
327
|
+
|
|
328
|
+
<SortableBoardContainer board={board}>
|
|
329
|
+
{columns.map((column) => (
|
|
330
|
+
<Column key={column.id} board={board} column={column} />
|
|
331
|
+
))}
|
|
332
|
+
</SortableBoardContainer>
|
|
244
333
|
```
|
|
245
334
|
|
|
246
|
-
|
|
335
|
+
> **Note:** Cross-container drag is experimental. The API may change in future versions.
|
|
247
336
|
|
|
248
|
-
### API
|
|
337
|
+
### 🏷️ Namespace API
|
|
249
338
|
|
|
250
|
-
|
|
339
|
+
For convenience, all components are available under the `Drax` namespace:
|
|
340
|
+
|
|
341
|
+
```tsx
|
|
342
|
+
import { Drax } from 'react-native-drax';
|
|
343
|
+
|
|
344
|
+
<Drax.Provider>
|
|
345
|
+
<Drax.View draggable>
|
|
346
|
+
<Drax.Handle><GripIcon /></Drax.Handle>
|
|
347
|
+
</Drax.View>
|
|
348
|
+
</Drax.Provider>
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
## 🧩 Components
|
|
352
|
+
|
|
353
|
+
| Component | Description |
|
|
354
|
+
|---|---|
|
|
355
|
+
| `DraxProvider` | Context provider — wrap your app's drag-and-drop area |
|
|
356
|
+
| `DraxView` | Draggable and/or receptive view with 19 callback events |
|
|
357
|
+
| `DraxList` | List-agnostic sortable list (convenience wrapper) |
|
|
358
|
+
| `DraxHandle` | Drag handle — only this area starts a drag |
|
|
359
|
+
| `DraxScrollView` | Scrollable container with auto-scroll during drag |
|
|
360
|
+
| `SortableContainer` | Monitoring wrapper for composable sortable API |
|
|
361
|
+
| `SortableItem` | Per-item wrapper with shift animation |
|
|
362
|
+
| `SortableBoardContainer` | Cross-container board coordinator (experimental) |
|
|
363
|
+
|
|
364
|
+
## 🪝 Hooks
|
|
365
|
+
|
|
366
|
+
| Hook | Description |
|
|
367
|
+
|---|---|
|
|
368
|
+
| `useSortableList` | List-agnostic reorder state management |
|
|
369
|
+
| `useSortableBoard` | Cross-container board coordinator (experimental) |
|
|
370
|
+
| `useDraxContext` | Access the Drax context |
|
|
371
|
+
| `useDraxId` | Generate a unique Drax view ID |
|
|
372
|
+
|
|
373
|
+
## 💡 Examples
|
|
374
|
+
|
|
375
|
+
The `example/` directory contains an Expo Router app with 11 screens demonstrating all features:
|
|
376
|
+
|
|
377
|
+
| Screen | Features shown |
|
|
378
|
+
|---|---|
|
|
379
|
+
| Color Drag & Drop | Drop acceptance, hover styles, snap alignment |
|
|
380
|
+
| Reorderable List | DraxList, animation presets, auto-scroll |
|
|
381
|
+
| Reorderable Grid | Sortable grid with multi-column layout |
|
|
382
|
+
| Mixed-Size Grid | Items with different spans (1×1, 2×2, etc.) using `getItemSpan` and `packGrid` |
|
|
383
|
+
| Drag Handles | Only the grip icon starts a drag |
|
|
384
|
+
| Drag Bounds | Constrain drag within a view |
|
|
385
|
+
| Collision Modes | Center vs Intersect vs Contain |
|
|
386
|
+
| Cross-List Reorder | FlashList + LegendList + FlatList cross-container drag (experimental) |
|
|
387
|
+
| Knight Moves | Chess knight drag puzzle |
|
|
388
|
+
| Scrolling | Drag from scroll view to drop zone |
|
|
389
|
+
| Stress Test | 100 items in a sortable list |
|
|
390
|
+
|
|
391
|
+
To run the example app:
|
|
392
|
+
|
|
393
|
+
```bash
|
|
394
|
+
cd example && yarn start
|
|
395
|
+
```
|
|
251
396
|
|
|
252
|
-
|
|
253
|
-
## Caveats
|
|
397
|
+
## 🔄 Migration from v0.x
|
|
254
398
|
|
|
255
|
-
|
|
399
|
+
v1.0.0 is a complete rewrite. Key changes:
|
|
256
400
|
|
|
257
|
-
|
|
401
|
+
- **`DraxList` is new** — list-agnostic convenience wrapper using the new sortable architecture. The old `DraxList` / `DraxListItem` API from v0.10.x and v0.11.0-alpha is removed.
|
|
402
|
+
- **New sortable architecture** — `useSortableList` + `SortableContainer` + `SortableItem` composable API replaces the old array-indexed approach.
|
|
403
|
+
- **Reanimated 4 + Gesture Handler 3** — required peer dependencies (Gesture Handler v2 supported via compat layer with reduced performance).
|
|
404
|
+
- **New Architecture (Fabric)** compatible.
|
|
258
405
|
|
|
259
|
-
|
|
260
|
-
## Examples
|
|
406
|
+
## 📋 Changelog
|
|
261
407
|
|
|
262
|
-
|
|
408
|
+
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
|
|
263
409
|
|
|
264
|
-
|
|
410
|
+
## 🤝 Contributing
|
|
265
411
|
|
|
266
|
-
|
|
267
|
-
- [Basic reorderable list](https://snack.expo.io/@lafiosca/react-native-drax---basic-reorderable-list?platform=ios)
|
|
412
|
+
Issues, pull requests, and discussion are all welcome. See the [Contribution Guidelines](CONTRIBUTING.md) for details.
|
|
268
413
|
|
|
269
|
-
|
|
414
|
+
## 📜 Code of Conduct
|
|
270
415
|
|
|
271
|
-
|
|
272
|
-
## Contributing
|
|
416
|
+
This project is released with a [Contributor Code of Conduct](CODE-OF-CONDUCT.md). By participating in this project you agree to abide by its terms.
|
|
273
417
|
|
|
274
|
-
|
|
418
|
+
## 🏆 Contributors
|
|
275
419
|
|
|
276
|
-
|
|
277
|
-
## Code of Conduct
|
|
420
|
+
Originally created by [Joe Lafiosca](https://github.com/lafiosca). v1.0.0 rewrite led by [Ovidiu Cristescu](https://github.com/LunatiqueCoder).
|
|
278
421
|
|
|
279
|
-
|
|
422
|
+
Thanks to all contributors who have helped make Drax better:
|
|
280
423
|
|
|
281
|
-
|
|
282
|
-
|
|
424
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
425
|
+
<!-- prettier-ignore-start -->
|
|
426
|
+
<!-- markdownlint-disable -->
|
|
427
|
+
<table>
|
|
428
|
+
<tbody>
|
|
429
|
+
<tr>
|
|
430
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lafiosca"><img src="https://avatars.githubusercontent.com/u/9442662?v=4" width="100px;" alt="Joe Lafiosca"/><br /><sub><b>Joe Lafiosca</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=lafiosca" title="Code">💻</a> <a href="https://github.com/nuclearpasta/react-native-drax/commits?author=lafiosca" title="Documentation">📖</a> <a href="#example-lafiosca" title="Examples">💡</a> <a href="#maintenance-lafiosca" title="Maintenance">🚧</a> <a href="#infra-lafiosca" title="Infrastructure">🚇</a></td>
|
|
431
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LunatiqueCoder"><img src="https://avatars.githubusercontent.com/u/55203625?v=4" width="100px;" alt="Ovidiu Cristescu"/><br /><sub><b>Ovidiu Cristescu</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=LunatiqueCoder" title="Code">💻</a> <a href="https://github.com/nuclearpasta/react-native-drax/commits?author=LunatiqueCoder" title="Documentation">📖</a> <a href="#example-LunatiqueCoder" title="Examples">💡</a> <a href="#maintenance-LunatiqueCoder" title="Maintenance">🚧</a></td>
|
|
432
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Auticiel"><img src="https://avatars.githubusercontent.com/u/8429221?v=4" width="100px;" alt="François Dupayrat"/><br /><sub><b>François Dupayrat</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=Auticiel" title="Code">💻</a></td>
|
|
433
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jmarnold"><img src="https://avatars.githubusercontent.com/u/181667?v=4" width="100px;" alt="Josh Arnold"/><br /><sub><b>Josh Arnold</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=jmarnold" title="Code">💻</a></td>
|
|
434
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rnz269"><img src="https://avatars.githubusercontent.com/u/20953181?v=4" width="100px;" alt="Rahul Nallappa"/><br /><sub><b>Rahul Nallappa</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=rnz269" title="Code">💻</a></td>
|
|
435
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/negue"><img src="https://avatars.githubusercontent.com/u/842273?v=4" width="100px;" alt="negue"/><br /><sub><b>negue</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=negue" title="Documentation">📖</a></td>
|
|
436
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chrisdrackett"><img src="https://avatars.githubusercontent.com/u/4378?v=4" width="100px;" alt="Chris Drackett"/><br /><sub><b>Chris Drackett</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=chrisdrackett" title="Code">💻</a></td>
|
|
437
|
+
</tr>
|
|
438
|
+
<tr>
|
|
439
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sturdynut"><img src="https://avatars.githubusercontent.com/u/8547391?v=4" width="100px;" alt="Matti Salokangas"/><br /><sub><b>Matti Salokangas</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=sturdynut" title="Code">💻</a></td>
|
|
440
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/afgarcia86"><img src="https://avatars.githubusercontent.com/u/3606053?v=4" width="100px;" alt="Andres Garcia"/><br /><sub><b>Andres Garcia</b></sub></a><br /><a href="https://github.com/nuclearpasta/react-native-drax/commits?author=afgarcia86" title="Code">💻</a></td>
|
|
441
|
+
</tr>
|
|
442
|
+
</tbody>
|
|
443
|
+
</table>
|
|
444
|
+
<!-- markdownlint-restore -->
|
|
445
|
+
<!-- prettier-ignore-end -->
|
|
446
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
283
447
|
|
|
284
|
-
|
|
448
|
+
## 📃 License
|
|
285
449
|
|
|
286
|
-
|
|
287
|
-
## Acknowledgments
|
|
450
|
+
[MIT](LICENSE.md)
|
|
288
451
|
|
|
289
|
-
|
|
452
|
+
---
|
|
290
453
|
|
|
291
|
-
|
|
454
|
+
Built and maintained using [OpenKit](https://www.openkit.work/).
|