react-native-draggable
react-native-draggable copied to clipboard
onDragRelease not return bounds
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());
Thank you.