File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
docs/src/content/docs/providers Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments