-
-
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
Edge-to-edge support #103
Edge-to-edge support #103
Conversation
@zoontek is attempting to deploy a commit to the Jovanni's projects Team on Vercel. A member of the Team first needs to authorize it. |
Code Climate has analyzed commit ad825ac and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Hey @zoontek, thank you so much for this! If you don't mind, can we also add |
@lodev09 , Sure, here it is. The prop value cannot be updated once the dialog is presented or we would have to add a mechanism similar to RN Modal (which dismiss and recreate the Dialog). I think it's acceptable, as your app is edge-to-edge or not and that's not something that change at runtime.
|
I think we can just put the burden to them on installing/detecting it 😂. So a simple prop would suffice. What do you think? We can install both your lib in the example though, for demonstration purposes. I will update the docs in a separate PR. Thanks again for this @zoontek |
I disagree.
Currently, a lot of react-native app are not edge-to-edge because it doesn't "just work". Having good defaults can save a lot of developers time. |
Okay, you do have a point. However, I'm one of those guys that tries to avoid unnecessary dependencies as much as possible 😅 Maybe you can revert it back to checking in the native side instead? If I'm not mistaken, this util checks if So we check internally if What do you think? |
@lodev09 You will have nothing to do on your side, the transition will be smooth. People will be able to set Otherwise, you will need to perform a new release to handle both in Kotlin. |
Looks good @zoontek. Thanks for your contribution 💪 |
@lodev09 Hi 👋
Following #72
I had to use
decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
to ignore insets applied on theBottomSheetDialog
internalbottomSheet
FrameLayout
(related issue). The alternative would be to fork and remove all the things we don't want, but…meh 😄.Tested on Android 6 to 15.
It's automatic when
react-native-edge-to-edge
is installed, so all you need to test it is to install the package, and the expo plugin and runyarn expo prebuild --clean && yarn android
.react-native-true-sheet.mp4