Skip to content
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

Using modal properly #2020

Closed
luco opened this issue Jul 12, 2017 · 2 comments
Closed

Using modal properly #2020

luco opened this issue Jul 12, 2017 · 2 comments

Comments

@luco
Copy link
Contributor

luco commented Jul 12, 2017

Hey guys, great work you've done on router flux. It's amazing and handy.
I have a simple question based on the new v4 release.

I'm trying to use the new modal flow. When I set my root scene as modal and the child as a card, it duplicates the navbar. So I tried to hide the navBar and display it on card, but it still hidden on my modal view.

My router:

        <Router>
            <Scene key="root" modal hideNavBar={true}>
              <Scene key="home1" card hideNavBar={false}>
                <Scene key="home" component={Home}/>
                <Scene key="home2" component={Home2}/>
              </Scene>
              <Scene key="modal" component={Modal}/>
            </Scene>
          </Router>

I already tried to set hideNavBar={false} on my modal Scene. I wasn't lucky.
Any tips? Thanks

@aksonov
Copy link
Owner

aksonov commented Jul 12, 2017

Please check Example project. There is modal Login with own navbar.

@luco
Copy link
Contributor Author

luco commented Jul 12, 2017

Oh, sorry. Thank you.
Now it's working as expected.

@aksonov aksonov closed this as completed Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants