Enhance resize function to track detent index changes#690
Conversation
fix(android): prevent TrueSheet collapse to detent 0 on dynamic content layout changes
|
@allthetime is attempting to deploy a commit to the RealEdge Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
I'm wondering if this is the issue I’m having! I have a ride flow and sometimes when lets say a user switches to whatsapp or the map and come back the true sheet is gone, and they get upset. I hope this is the fix! |
|
@karimcambridge you can give this patch a try and see! I'm running @lodev09/react-native-true-sheet@3.10.1 |
|
@allthetime do you have a video showing this bug? I'll try to replicate and see how this PR fixes the issue. |
First of all, thanks for this DOPE library. Second I have a minimal repro here (direct link to App.tsx): https://github.com/allthetime/true_sheet_android_resize_collapse_bug/blob/master/App.tsx. Thirdly, here's a video - its very quick/hard to notice. I'm pressing the "Resize to detent 1" button. It quickly tries to go up but then goes back down. Pressing it again does nothing and the sheet stays at detent 0 height. truesheetproblem.webmWith my patch in place this doesn't happen anymore and it behaves as expected. |
fix(android): prevent TrueSheet collapse to detent 0 on dynamic content layout changes
Summary
Type of Change
Test Plan
repro
Checklist