rn-swipeable-panel icon indicating copy to clipboard operation
rn-swipeable-panel copied to clipboard

Prevent close

Open akeva001 opened this issue 2 years ago • 3 comments

Is it possible to prevent the panel from completely closing?

akeva001 avatar Dec 23 '22 20:12 akeva001

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 avatar Jan 12 '23 23:01 lucksp

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

lucksp avatar Jan 12 '23 23:01 lucksp

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

raheelshan avatar Mar 09 '23 12:03 raheelshan