question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BottomSheet is now lower

See original GitHub issue

Ask 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gorhomcommented, Feb 16, 2021

i found the issue, working on a fix 🛠

1reaction
chybisovcommented, Feb 16, 2021

@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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found