-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Edge to edge support #72
Comments
Okay. thanks for investigating.. Looks like I just need the sheet to detect if edge to edge is enabled. I have yet to explore on that feature on Android.. I'm kind of occupied at the moment, but I'm open to PRs :) |
I gave it a try for an hour, but my skills aren't up to the task. Looks like I'll just have to wait for now! :) |
@SickanK no worries.. I can understand, android doesn't make things easy like IOS :D |
I tried looking for solution on this but couldn't find one that works. I honestly think this is an issue with Android bottom sheet itself lol. I'll pin this and maybe someone that knows android can fix this for us 😅 |
@lodev09 there is no way to detect edge-to-edge on android, however you could add it as an optional prop to the true sheet component. checkout |
Yes that's what I thought, by using a prop boolean. My main issue is that I couldn't find a working code that moves the sheet at the bottom edge. |
@kirillzyusko can you maybe help out? I just toggled your |
@hirbod I had only a brief look at the code. It looks like for showing a sheet we show a dialog and then attach A potential solution would be measuring @lodev09 would you mind do some experiments with forcing the dialog to stretch to full window size and let us know the result? 👀 I'm keen to help, but don't have too much free time at the moment (unfortunately). |
Hey @kirillzyusko. Thanks for looking! The library doesn't really need to automatically determine if edge-to-edge is enabled -- we can put this burden to the user and add a prop for the TrueSheet to know if edge-to-edge is enabled 😅 However, I'm missing something to make the actual BottomSheetDialog to popup at the edge of the screen. Assuming that edge-to-edge is enabled. I did a second googling and it looks like I might just be missing the style requirement for the |
@lodev09 You can't detect if edge-to-edge is enable, but you can detect if If you pass the I probably can open a PR if you want 🙂 |
@zoontek that would be awesome! |
Thanks @zoontek! I'll do the docs at a separate PR before release. |
Yesterday, I created ticket #69 regarding a color change in the bottom navigation bar. Upon further investigation, I realized that the color change was due to the backdrop showing through the transparent color I had set for the navigation bar. A similar issue with edge-to-edge on android was previously reported in ticket #50, which has since been closed.
Description:
When using react-native-unistyles, which automatically sets Android to edge-to-edge mode, the sheet floats above the navigation bar. I've also set the color of the navigation bar to transparent for the effect to be noticeable. In the provided reproduction, you can see the text showing through the navigation bar.
Reproduction: https://github.com/SickanK/react-native-true-sheet-edge
Images:
The text was updated successfully, but these errors were encountered: