enesozturk / rn-swipeable-panel

Zero dependency swipeable bottom panel for React Native 📱
MIT License
970 stars 143 forks source link

Prevent close #145

Open akeva001 opened 1 year ago

akeva001 commented 1 year ago

Is it possible to prevent the panel from completely closing?

lucksp commented 1 year ago

I also want this, but based on prior messaging, it's not going to happen: https://github.com/enesozturk/rn-swipeable-panel/issues/14

lucksp commented 1 year ago

I am researching this now since there are too many issues with the library of the panel disappearing and then no longer being able to get the view back without quitting the application; which is obviously horrible UX.

Video:

https://user-images.githubusercontent.com/15162169/212200751-26e0598a-e393-49a9-b21a-623eeae90c4c.mov

raheelshan commented 1 year ago

I have achieved it like this const closePanel = () => { setIsPanelActive(false); setTimeout(() => { openPanel(); }, 0) };