File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,15 @@ This package relies on :
2020
2121- [ react-native-reanimated@>=3] ( https://github.com/software-mansion/react-native-reanimated/ )
2222- [ react-native-gesture-handler@>=2] ( https://github.com/software-mansion/react-native-gesture-handler/ )
23- - [ react-native-haptic-feedback@>=2] ( https://github.com/mkuczera/react-native-haptic-feedback/ )
2423
2524You first need to add them as dependencies:
2625
2726``` bash
28- npm install react-native-reanimated react-native-gesture-handler react-native-haptic-feedback --save
27+ npm install react-native-reanimated react-native-gesture-handler --save
2928# or
30- yarn add react-native-reanimated react-native-gesture-handler react-native-haptic-feedback
29+ yarn add react-native-reanimated react-native-gesture-handler
3130# or
32- pnpm add react-native-reanimated react-native-gesture-handler react-native-haptic-feedback
31+ pnpm add react-native-reanimated react-native-gesture-handler
3332```
3433
3534Then you must follow their respective installation instructions:
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ 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 = " hapticFeedback " type = " HapticFeedbackTypes " optional >
44- An optional haptic feedback type to trigger when a draggable item becomes active.
43+ <Property name = " onFeedback " type = " function " optional >
44+ A callback function to provide feedback (eg. haptic) when a draggable item becomes active.
4545 </Property >
4646 <Property name = " onDragEnd" type = " function" optional >
4747 A callback function to be called when a drag event ends. It receives an object with ` active ` and ` over `
You can’t perform that action at this time.
0 commit comments