BottomSheetBackdrop very slow + layout shift (Expo 52 + RN 0.76.5) FIX #2094
PaddaSecurity
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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