Is it possible to invoke a function as the user drags the modal to get the y position of the sheet? Readme mentions using refs, but unclear on how to go about getting the latest values. I tried the following
const ref = useRef();
useEffect(() => {
// Use the latest y value
},[ref.current.y] ]
<Sheet ref={ref}> ... </Sheet>
Is it possible to invoke a function as the user drags the modal to get the y position of the sheet? Readme mentions using refs, but unclear on how to go about getting the latest values. I tried the following