-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
How to use modal #2173
Comments
Try put your
|
You should make root scene as |
This still doesn't work.
It doesn't make any sense to me that wrapping everything in the modal scene would make one specific scene modal when I don't want the rest (like ListingDetail) to be modal. Is there a specific parameter in |
Unfortunately it is problem of react-navigation - it doesn't support different animations for stack children. I can't reproduce your problem (code looks fine), that is why I ask everybody to fork & modify this repo Example if they want their issues be resolved. Login modal from Example works fine as you can see |
So are you saying that there is no way to support a modal iOS transition? I.e. one that slides from the bottom? |
What do you mean? I said you twice that Example has modal Login screen (that slides from the bottom) |
Ok but you also said my code looks fine.... |
I've tried my best to follow the Example but because there's no documentation I can't tell what the reason for everything being there is. I can't just copy and paste that code since obviously my routes are different. |
The same I could tell you about your code - I don't see whole project and all details. For example you may use |
I'm happy to provide more code samples if you let me know what you need. Are you saying that you can't have both |
OMG. Not in app, but in one container. After more deep look your code has error - 'map' still child of 'normal' container (key=root), not modal (key='modal'). Looks like you don't understand what you are doing. Maybe this component is too complex for you... Try this:
|
Thanks, this fixes the issue. How do you expect me to understand something when there isn't a line of documentation about it? There have been many people opening issues about this modal feature, maybe that is indicative of the need for docs... |
Few recent posts here are about JSX syntax and understanding of navigation containers, not about documentation. |
Hi, worked for me
|
When I add the modal wrapper I then get 2 navbar on the top of my view, when I add hideNavBar both of them disappear. How can I solve this issue I want one tab bar only not two obviously... ? |
Use |
Version
I'm really struggling with modals as there is no documentation on them and the example has no comments or indication as to how certain scenes are displayed modally and others aren't. Here is my code.
I'm trying to get the Map component to display modally.
MapButton
is the following:I have to use this because rightText is extremely buggy and won't render half the time.
The text was updated successfully, but these errors were encountered: