BottomSheetBackdrop very slow + layout shift (Expo 52 + RN 0.76.5) FIX #2094
PaddaSecurity
started this conversation in
Ideas
Replies: 1 comment
-
Can also confirm that using custom Backdrop implementation gives fewer frame drops compared to default one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When upgrading to Expo 52 + RN 0.76.5 -> the BottomSheetBackdrop component causes a layout shift for the bottom sheet modal + has become sluggish.
So I just made my own - no it's not ARIA compliant and such, no it doesn't do everything the main supported one does, but for your apps if you want to add that you can! Just a starting point and hey... it works :)
Make a new component (call it whatever you want, I called it "custom-bottom-sheet-backdrop.tsx") and paste this in.
And you would use it like this:
Now it should be just as fast and smooth as it was before all the upgrades.
Hope this helps someone!
Beta Was this translation helpful? Give feedback.
All reactions