You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* SortableList - support items change
* disableHaptic to enableHaptic
* ItemId to ItemWithId
* Add note about Android's haptic feedback
* Send data via context
Copy file name to clipboardExpand all lines: src/components/sortableList/SortableList.api.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
"props": [
9
9
{
10
10
"name": "data",
11
-
"type": "ItemT[]",
12
-
"description": "The initial data of the list, do not update the data.",
11
+
"type": "ItemT[] (ItemT extends {id: string})",
12
+
"description": "The data of the list, with an id prop as unique identifier.",
13
13
"required": true
14
14
},
15
15
{
@@ -19,9 +19,9 @@
19
19
"required": true
20
20
},
21
21
{
22
-
"name": "disableHaptic",
22
+
"name": "enableHaptic",
23
23
"type": "boolean",
24
-
"description": "Whether to disable the haptic feedback."
24
+
"description": "Whether to enable the haptic feedback.\n(please note that react-native-haptic-feedback does not support the specific haptic type on Android starting on an unknown version, you can use 1.8.2 for it to work properly)"
* A callback to get the new order (or swapped items).
19
22
*/
20
23
onOrderChange: (data: ItemT[]/* TODO: add more data? */)=>void;
24
+
/**
25
+
* Whether to enable the haptic feedback
26
+
* (please note that react-native-haptic-feedback does not support the specific haptic type on Android starting on an unknown version, you can use 1.8.2 for it to work properly)
0 commit comments