Guiw5

Results 11 comments of Guiw5

you have this handler on props `onSnap={snapIndex => console.log('> Current snap point index:', snapIndex) }` is the index from snapPoints array ``` snapPoints={[600, 400, 100, 0]} initialSnap={1} ```

@Temzasse I found the issue: I was using your example from https://github.com/Temzasse/react-modal-sheet/blob/master/example/components/SnapPoints.tsx but if you change the snapPoints all to percentages like: `const snapPoints = [0.9, 0.6, 0.3, 0];` **And...

have you tried adding an extra height to those container divs?

why this is in draft?

yes, Im needing this too, I'm using typescript trying to open the drawer from the ref, but the open prop is required and overrides the handler, my idea was using...

would this allow to pointing the scroller element ref? I'm asking because, I would like to have access to the div element into the bottom-sheet that is managing the scroll,...

> would this allow to pointing the scroller element ref? I'm asking because, I would like to have access to the div element into the bottom-sheet that is managing the...

you could use the height info ``` // then in your code access to that ref and useEffect(( ) => { // height changed, do your staff }, [sheetRef.current.height) ````

and if you read the docs, you will find support for this ``` export default function Example() { const sheetRef = React.useRef() return ( { console.log('Transition from:', sheetRef.current.height) requestAnimationFrame(() =>...

@AllenFang @YannisMarios I think it should be closed as it's solved by an alternative way to do it. ...as we said "it's not an issue is a feature"