-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
presentation="modal" not working on android #1650
Comments
was facing the same issue. |
Yeah it looks like it's just not implemented? 🤔 weird that the documentation says
when
Given that |
Also facing the same issue. Do we have a work around for this for android? |
I'm facing the same issue. It's not working in android 💯 |
Is there anyone solved this issue ?? |
Yes it is not working. Can anyone suggest a workaround? |
Hi, sorry for late response! There is likely no workaround, because as @jaredly reported, indeed Android modal view are effectively not implemented. I recently started looking into it while attempting to implement bottom-sheets for Android -- and unfortunately there are some technical reasons why it is the case and Android modals were left behind. It looks that documentation is indeed misleading, sorry! Once I'll open PR with support for modals & I'll try to remember to link it here so you can track progress. |
hey, @kkafar did you find the solution 😛 ? |
6 months and the docs still say this presentation works on android and ios. Would appreciate any update :) |
Any solution yet? |
anything on this? |
let's change to use flutter. |
I think we should try to use animation API provided by Stack as an alternative to it |
use |
after upgrading to react navigation V6 this code worked for me:
|
Any update on this? |
working perfectly |
Still not working |
1 similar comment
Still not working |
day 28 of september, Expo Router V2 and SDK 49, and still not working on android |
It's been a so long, Tag "Zuck" now. 😬 |
still not working |
add the below in screenOptions |
I want to make the previous screen appear a little bit in the current screen |
I want the same but i dont think is intended to work that way on android from what ive seen. |
I'm using |
Changing from
|
ModalSlideFromBottomIOS worked but the screen still show in fullscreen, any solution? |
Mine is working well not covering full screen. I am using createStackNavigator (non native) and screenOptions={{presentation: 'modal'}} I created a separated group for modal presentations by using <"StackName".Group screenOptions={{presentation: 'modal'}}>, hope that works |
thanks, but I native-stack is better performance, so I dont want to use non-native |
Yeah, your are right, but with Native unfortunately it won't work, I hope they fix that. |
Any update on this problem? :( |
so with |
Well over a year and still what most would call a key facility is non functional. What, do they all use iphones or what? |
I am having the same issue, my app heavily relies on modal to work correctly. Is there any kind of communication regarding this being in the pipeline to be fixed? |
My workaround using expo:
|
any updates? |
Please this info should be included in expo docs, since this is causing confusion for many of us. |
presentation=modal is still not working for bot ios and android |
Same |
looks like a few things could happen here for a way forward:
|
You are absolutely right !. I am thinking of using this instead |
With the plan being to host the sheets inside of your routes? |
No, just using them like a modal. |
Hey, I just found a temporary workaround for this for android, if you want modal to be a bit of away from screen like IOS version, just add these screen options and you are good to go. <Stack.Group screenOptions={({navigation}) => ({
...TransitionPresets.ModalSlideFromBottomIOS,
gestureEnabled: true,
presentation: "modal",
cardStyle: {marginTop: 10, borderTopStartRadius: 20, borderTopEndRadius: 20}
})}> |
damn |
i wish the modal screen supported on android |
they all use iPhones only 😥 . |
Hey hey: you can track this PR: #2045 for progress in the matter. It's finally entering review process. |
Finally 😅 |
Nice. |
This works on android and IOS.
|
|
@atultiwaree Yes. |
Description
Having set
presentation="modal"
for a screen has no effect on that screen on Android (still opens full screen view)Works as expected on iOS.
Steps to reproduce
presentation="modal"
to a screenoptions
Snack or a link to a repository
https://snack.expo.dev/gg56CATOS
Screens version
6.6.1
React Native version
0.69.0
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
No response
Device
No response
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: