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
Copy file name to clipboardExpand all lines: packages/docs/docs/flex/props.mdx
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -572,11 +572,17 @@ Component to use as the drop indicator. It gives a **full control** over the dro
572
572
573
573
```tsx
574
574
typeDropIndicatorComponentProps= {
575
-
activationProgress:SharedValue<number>;
576
-
touchedItemKey:SharedValue<null|string>;
575
+
/** Progress of the active item animation (from 0 to 1) */
576
+
activeAnimationProgress:SharedValue<number>;
577
+
/** Key of the currently dragged item, or null if no item is being dragged */
578
+
activeItemKey:SharedValue<null|string>;
579
+
/** Current index where the dragged item would be dropped */
577
580
dropIndex:SharedValue<number>;
581
+
/** Current position where the item would be dropped */
578
582
dropPosition:SharedValue<Vector>;
583
+
/** Array of item keys in their current order */
579
584
orderedItemKeys:SharedValue<Array<string>>;
585
+
/** Style to be applied to the drop indicator */
580
586
style:ViewStyle;
581
587
};
582
588
```
@@ -820,6 +826,12 @@ type OrderChangeParams = {
820
826
821
827
</details>
822
828
829
+
:::warning
830
+
831
+
**Don't use** this callback to update items order in state because it's called **frequently** during dragging. Use `onDragEnd` for **state updates** instead.
832
+
833
+
:::
834
+
823
835
---
824
836
825
837
### onDragMove
@@ -883,6 +895,16 @@ You can also use any other haptics library but you will have to trigger haptics
883
895
884
896
---
885
897
898
+
### overflow
899
+
900
+
Controls if the overflowing content should be clipped or visible. Applies only when no item is active.
Enables debug mode, which shows additional views helpful for debugging. This property is intended for the library **developers** and is not recommended for the library **users**.
Copy file name to clipboardExpand all lines: packages/docs/docs/grid/props.mdx
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -456,11 +456,17 @@ Component to use as the drop indicator. It gives a **full control** over the dro
456
456
457
457
```tsx
458
458
typeDropIndicatorComponentProps= {
459
-
activationProgress:SharedValue<number>;
460
-
touchedItemKey:SharedValue<null|string>;
459
+
/** Progress of the active item animation (from 0 to 1) */
460
+
activeAnimationProgress:SharedValue<number>;
461
+
/** Key of the currently dragged item, or null if no item is being dragged */
462
+
activeItemKey:SharedValue<null|string>;
463
+
/** Current index where the dragged item would be dropped */
461
464
dropIndex:SharedValue<number>;
465
+
/** Current position where the item would be dropped */
462
466
dropPosition:SharedValue<Vector>;
467
+
/** Array of item keys in their current order */
463
468
orderedItemKeys:SharedValue<Array<string>>;
469
+
/** Style to be applied to the drop indicator */
464
470
style:ViewStyle;
465
471
};
466
472
```
@@ -704,6 +710,12 @@ type OrderChangeParams = {
704
710
705
711
</details>
706
712
713
+
:::warning
714
+
715
+
**Don't use** this callback to update items order in state because it's called **frequently** during dragging. Use `onDragEnd` for **state updates** instead.
716
+
717
+
:::
718
+
707
719
---
708
720
709
721
### onDragMove
@@ -769,6 +781,16 @@ You can also use any other haptics library but you will have to trigger haptics
769
781
770
782
---
771
783
784
+
### overflow
785
+
786
+
Controls if the overflowing content should be clipped or visible. Applies only when no item is active.
Enables debug mode, which shows additional views helpful for debugging. This property is intended for the library **developers** and is not recommended for the library **users**.
0 commit comments