react-native-draggable icon indicating copy to clipboard operation
react-native-draggable copied to clipboard

onDragRelease not return bounds

Open inModo opened this issue 4 years ago • 1 comments

i find this issue on using this library,

so i'm fixed this issue and share to you

fix to :

Draggable.tsx ( 43 lines )

onDragRelease?: (e: GestureResponderEvent, gestureState: PanResponderGestureState }) => void;

to

onDragRelease?: (e: GestureResponderEvent, gestureState: PanResponderGestureState , bounds:{left: number, top: number, right: number, bottom: number}) => void;

and

Draggable.tsx ( 128 lines )

onDragRelease(e, gestureState);

to

onDragRelease(e, gestureState,getBounds());

inModo avatar Sep 09 '20 05:09 inModo

Thank you.

kaltoft avatar Oct 09 '20 14:10 kaltoft