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

Presenting some views as modal while others as normal from the same root view #2899

Closed
R1ckye opened this issue Feb 22, 2018 · 2 comments
Closed

Comments

@R1ckye
Copy link

R1ckye commented Feb 22, 2018

I'm wondering if it's possible (as the title states) to have a root view that presents both modals and normal side-navigated (a.k.a. pushed) Scenes?
According to the documentation, you have to wrap it in a but that makes everything appear as a modal. Is there a workaround or an other way to do it?

@200even
Copy link

200even commented Jul 18, 2018

We are also experiencing this issue. We have a modal that links back to a second root scene but that scene transitions as a modal.

<Modal>
  <Scene key='root'>
    <Scene
      key='Home'
      component={ Home }
      initial
      hideNavBar
    />
    // this scene should transition from 'searchModal' as a normal scene
    <Scene
      key='searchResults'
      component={ Results }
      hideNavBar
    />
  </Scene>
  <Scene
    key='searchModal'
    component={ Search }
    hideNavBar
  />
</Modal>

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

You may also check Example project with Modal usage

@aksonov aksonov closed this as completed Aug 8, 2018
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

3 participants