Content is overflowing at the bottom which results in a content leak on Notch phones
See original GitHub issueFirst of all, awesome library 👏
I’ve come across what I think is a bug where the bottomSheet content is leaking into the SafeArea
from the bottom (on notch phones like iPhone X). SafeArea
is a component from react-navigation
that ensures content is not overlapping outside of viewable area in notch phones.
Preview
You can see the bottom sheet content is overflowing at the bottom when it should not be.
Here’s my configuration:
<BottomSheet
snapPoints={[290, 75]}
initialSnap={1}
renderContent={renderInner}
renderHeader={renderHeader}
/>
react-native info
React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 27.74 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
Yarn: 1.6.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
Build Tools: 26.0.3, 27.0.3, 28.0.2, 28.0.3
API Levels: 21, 22, 23, 24, 25, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
react-native-log-ios: 1.0.1
Things I tried
I tried setting zIndex on the SafeArea
view to a high value like 9 but still, the bottom sheet is showing on top.
Any other ideas I can try to work around this?
Thanks 👋
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Cordova app not displaying correctly on iPhone X (Simulator)
The result is then as desired: the app content covers the full screen, but is not obscured by the "notch": I've created a...
Read more >iPhone 14 Pro weird notch replacement to teach Android an ...
Front Page Tech host, Jon Prosser, leaked the design of Apple's 2022 Pro ... disappear when you're engaging with the content on your...
Read more >"The Notch" and CSS | CSS-Tricks
The result is some awkward situations for screen design, like constraining websites to a “safe area” and having white bars on the edges....
Read more >Leaked schematic image claims to show true size of iPhone ...
While initial reports had indicated the notch would be dropped entirely in favor of a new hole-punch design, more recent reporting has ...
Read more >Easy Steps To Fix A Leaking Air Conditioner
In Phoenix, air conditioners commonly use refrigerant freon to provide cooling effects. Freon leaks aren't very common but they can impact your family's...
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 Free
Top 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
any updates on this?
For future readers, a workaround is:
Overriding the zIndex doesn’t seem to work even if the value is greater than 100 which is what seems to be set for this component.