octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/
MIT License
929 stars 157 forks source link

Can not scroll to last item when panel is in middle of screen (snapping points) #180

Open milule opened 4 years ago

milule commented 4 years ago

I try to implement flat list scroll vertical in sliding panel. And if the panel is in top position the list can be scroll full all items but when the panel is in snapping points position, i can not scroll to last items. Can you help me find the solution of this isue ? Thanks

efratyo commented 3 years ago

I had the same problem. It was fixed when I set the panel's hight the same as draggableRange's top value. In my case it's:

const draggableRange = {
    top: height - 200,
    bottom: 85,
}
<SlidingUpPanel
       draggableRange={draggableRange}
       height={draggableRange.top}
      ...
  >