BottomSheet is now lower
See original GitHub issueAsk your Question
@gorhom I just installed 2.2.0 and saw my bottomsheet sank by about 20px. Is that since the new bottomInset
option was introduced?
I tried adding the option with bottomInset={bottomSafeArea}
and updated my function to const { top: topSafeArea, bottom: bottomSafeArea } = useSafeAreaInsets();
but that didn’t fix it.
What’s going on? how do I fix this?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Set state of BottomSheetDialogFragment to expanded
So, in the onCreateDialog() of your modal bottom sheet ( BottomSheetFragment ), just before returning the dialog (or anywhere, once you have ...
Read more >Sheets: bottom - Material Design
Bottom sheets are surfaces containing supplementary content that are anchored to the bottom of the screen.
Read more >How to Return a Value from a Bottom Sheet - YouTube
0:00 · New! Watch ads now so you can enjoy fewer interruptions. Got it ...
Read more >#1 Android Bottom Sheet Tutorial - Persistent ... - YouTube
In this playlist we will learn how we can implement a Bottom Sheet in Android App. If you want to know how you...
Read more >Make your BottomSheetDialog noncancelable - beta - Medium
Here's a workaround to make your bottom sheet dialog noncancelable. ... Now when you click outside the sheet, it will not be dismissed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i found the issue, working on a fix 🛠
@kickbk as a temporary workaround you can add bottomInset to your snapPoints.
const snapPoints = useMemo(() => [280 + bottomInset], [bottomInset]);
If you use
@react-navigation/bottom-tabs
you need also provide tabbar height (for me it’s 48):const snapPoints = useMemo(() => [280 + 48 + bottomInset], [bottomInset]);
Hope this will be fixed soon, as I don’t like put snapPoints inside component logic, much better to keep these as constant array outside of component. 😃