Skip to content

Commit 46a06d6

Browse files
committed
feat(docs): update docs
1 parent 7f72122 commit 46a06d6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/src/content/docs/providers/DndProvider.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export const App: FunctionComponent = () => {
4040
<Property name="disabled" type="boolean" optional defaultValue={`false`}>
4141
An optional boolean value to disable the Drag and Drop functionality globally. Default is `false`.
4242
</Property>
43-
<Property name="onFeedback" type="function" optional>
44-
A callback function to provide feedback (eg. haptic) when a draggable item becomes active.
43+
<Property name="onActivation" type="function" optional>
44+
A callback function that is called when a draggable item becomes active. Can be used to trigger haptic
45+
feedback.
4546
</Property>
4647
<Property name="onDragEnd" type="function" optional>
4748
A callback function to be called when a drag event ends. It receives an object with `active` and `over`
@@ -63,6 +64,11 @@ export const App: FunctionComponent = () => {
6364
object with `activeId` and `activeLayout` properties representing the active draggable item's ID and
6465
updated layout, respectively.
6566
</Property>
67+
<Property name="shouldDropWorklet" type="worklet function" optional>
68+
A worklet callback function to be called on gesture update to determine if the active draggable item can be
69+
dropped on a droppable item. It receives the active Rectangle layout and a potentially droppable Rectangle
70+
layout
71+
</Property>
6672
<Property name="style" type="StyleProp<ViewStyle>" optional>
6773
An optional style object to apply custom styles to the DndProvider component.
6874
</Property>

0 commit comments

Comments
 (0)