-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
fix(bottom-sheet-modal): behind native modal view #1309
fix(bottom-sheet-modal): behind native modal view #1309
Conversation
@gorhom hope you can check this PR, nice work |
this does not work with react navigation ios modals(presentation: 'modal'). bottom-sheet bottom insets jumping up. |
@batuhansahan Not sure to understand what is actually not working on your side, can you provide a sample ? |
Hmm strange, maybe your |
i tried very way -provider and reverse. |
It's also not working for me with the following screen options
It's always rendered behind the stack screen |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
@gorhom Any news on this ? |
It is working for me with the
The only thing is that screens are implemented with regular |
Would love to see this merged! |
I noticed that this implementation conflicts with libraries like |
@thecoorum Actually it’s not invisible but behind the bottom sheet because of the |
@magrinj thanks for submitting this CR, i was thinking about exposing a prop in the by doing this, the library still take no dependency ( other than GH and REA ) and you get to customising the container as you please . |
@gorhom Ok, I was going this way at fist so it's automatic. But I'll change my PR, and add a prop called |
ecde05d
to
fa3fd44
Compare
@gorhom Done ! :) |
@gorhom I just edit regarding the requested changes |
thanks @magrinj for submitting this PR , it should be released on |
…)(by @magrinj) * fix: bottom sheet modal appear behind native views * feat: add bottomSheetWrapper prop to specify a custom wrapper component * fix: edit regardless of the comments
Hey @gorhom just a lil nudge to publish 4.4.8 if possible 😄 thank you! |
Hey @gorhom sorry for pushing but do you have any updates on release 4.4.8? I developing a scenario in which I would like to leverage this PR it will be awesome! Thanks in advance! |
Anyone found any workaround to show BottomSheetModal on top of native Modal? |
I think this is something that may help here |
Fix issue #832
Motivation
Using
react-navigation
or nativeModal
component withBottomSheetModal
component will show them behind the native views.As suggested in react-native-portal library, we should wrap the content inside
FullWindowOverlay
to get the view above all the native views.https://github.com/gorhom/react-native-portal#react-native-screens-integration
I had initially create this PR #1086 to fix the issue, but this one fix the concern about adding
react-native-screens
as a required dependency.react-native-screens
is now added but as an optional peer dependency.If the module is installed the
FullWindowOverlay
will be used on iOS, otherwise it will work as before.