-
Notifications
You must be signed in to change notification settings - Fork 298
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
[react-native-modalize] swipeable not working on android #41
Comments
The issue might be the use of the If you still have issue, could you create a simple repo containing the issue, so I could run it and look at it :) |
Hey, just hit this issue as awell. Of course one could put the modal at the top of the React tree to circumvent this problem, but it would be nice if we could colocate the code in the same component from where you are calling the modal. |
Thanks everyone, I will try again. If I still have that issue, I will notify everyone later :) |
@JonnyBurger That's indeed really broken. I never use
I have no answer yet, I'm open for ideas or feedbacks |
@saurabhdsachan Are you using either |
Hi @jeremybarbet ,
|
Could you create a git repository with the error? your code looks good, so I would need to try it to check |
Regarding the error if you use Modal, there might be nothing we can do about it since it is a bug in component in React native or react-native-gesture-handler. Possible related upstream issues: software-mansion/react-native-gesture-handler#139 |
Hi @jeremybarbet |
@saurabhdsachan could you help me with it too? same thing on android. i have tried with putting only the modalizer in render method so that it is a clean page. still not able to use the swipe able gestures with it |
thats the whole of my component. still not able to do it on actual device using s8
|
Thanks @JonnyBurger for the dive in. I think in the early version of the package, @Frindecent You might have forgotten to install |
@jeremybarbet its allready there since i am using react-navigation . |
I have the same issue. swipe modal or tap the overlay does not work on android. "react-native-gesture-handler": "^1.4.1", |
I can absolutely confirm this. After SPENDING hours to get the swipe to dismiss work on android (using a portal), just found out, that my component just don't WORK on android as soon as I wrap around it. It's just PERFECT on iOS (works fully as intended, an animated horizontal ScrollView), but on Android, I can't click the absolute header nor can I swipe. (Even with the portal, no use of withReactModal). When I use "withReactModal", the swiping works but the swipe to dismiss breaks. @jeremybarbet, can you help out here? I am so close to wipe modalize on android |
this helps me to make swipeable working |
Unfortunately this won’t help us Expo people |
@jeremybarbet Is there any improvement in this issue? It simply cannot be closed via swiping on Android. |
@WrathChaos I'm too busy on other projects, unfortunately, to dig into it. If anyone can look at it, I would be more than grateful. Are you using expo? There is a one known issue with Otherwise, if you don't have the latest versions of We are using it in a couple of projects at Ueno and on personal projects, along with |
I'm using it with Pure React Native and latest versions of |
If you could recreate a simple reproducible repo, with the issue it would help |
Sure, I'm gonna send you a repo link |
Hi again @jeremybarbet, https://github.com/WrathChaos/React-Native-Modalize-Android-Gesture-Problem-Example This is an example of reproducible |
@jeremybarbet Do you have a chance to check the example? I really need a solution |
HI @WrathChaos, yes I looked at it, you forget to install RNGH on android: https://software-mansion.github.io/react-native-gesture-handler/docs/getting-started.html#android For everyone else on the discussion, and that have an issue with Android, make sure first you complete this step, otherwise, it won't work on android. |
I am an Expo user, its installed and added |
That fixed the issue for Android! Thank you so much, totally missed it. I think you should add this as FAQ part. Really important! Thank you and awesome work man |
@hirbod Have you been able to try the latest expo example I did: https://github.com/jeremybarbet/react-native-modalize/tree/master/examples/expo It has latest version of expo/expo-sdk/RNGH and I tested it under Android and iOS @WrathChaos Thanks, glad it works! It's already in the documentation, but not really well displayed, I'll make it more obvious! |
@jeremybarbet yeah I am on SDK 36 now and everything is working for me, as long as I don't use the Header Component. (It won't capture taps on android). I ended up placing my stuff inside of it using a high zIndex. Its stable now for me. Sidenote: not working when using withReactModal. I had to use a portal! |
@hirbod Great that's good to know. Yes, using I will work on a Provider to display Modalize on top of everything, as soon as I can |
Would be great, thanks! |
@ybonnetain If you are talking about this props https://github.com/react-native-community/react-native-modal#available-props, this is not the Modal from RN core but another modal library. I'm not using it inside this project |
Thanks @saurabhdsachan! I confirm the solution indeed works. So far so good on android, not sure what the effect is on other gestures, will do more testing later.
Edit: seems no effect on other gestures. solution by MariShielaFurio totally fixes the swipe-gesture-inside-modal problem for my version. |
Hi, I will close this issue. Multiple new features have been introduced:
|
I had this issue for a while and want to share what worked for me |
Now try to use a TextInput in your setup, you'll go crazy just like me that why you thought you found the perfect solution, :) |
Hi @jeremybarbet , How I used:In Tabs Container
In Modalize screen
I want to render web view on top of all like modal |
This worked for me
|
ERROR Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property this is the error am getting when useing your bottomsheet which modalize |
Hi, i'm using your library with react-native-router-flux and i had a problem on android, swipeable does not work. Modal builds without errors, works on IOS but android does not respond to swipes. (Sorry, my english is not good :) )
Thank you in advance :)
The text was updated successfully, but these errors were encountered: