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

Modal nested navigation #2183

Closed
dhavrosh opened this issue Aug 4, 2017 · 4 comments
Closed

Modal nested navigation #2183

dhavrosh opened this issue Aug 4, 2017 · 4 comments

Comments

@dhavrosh
Copy link

dhavrosh commented Aug 4, 2017

Hey guys,

I'm using react-native-router-flux 3.37 and have tried 4.0.0-beta.14; react-native version is 0.45.1

I'd like to know if there is way to create nested navigation inside a modal (popup). It doesn't depend on module version for me, I just want to solve it.

Expected behaviour

<Scene key="modal" component={Modal}>
      <Scene
        key="root"
        style={mainStyle.container}
        navigationBarStyle={navigationStyle.bar}>
        <Scene
          initial={true}
          key="chat"
          title='GET STARTED'
          titleStyle={navigationStyle.title}
          titleWrapperStyle={navigationStyle.titleWrapper}
          sceneStyle={onboardingStyle.container}
          component={ChatViewContainer}
        />
      </Scene>
      <Scene key='cubeModal' component={TestView}>
        <Scene key='firstModal' component={ModalView}/>
        <Scene key='secondModal' component={ModalView}/>
      </Scene>
  </Scene>

When I open my popup by Actions.cubeModal() I expect to navigate inside it while calling Actions.firstModal() or Actions.secondModal()

Actual behaviour

After opening my popup it doesn't navigate to a secondModal inside a popup, it just add that block to the level where chat and cubeModal are.

If this issue could be solved with a newer version, let it be. Main goal - to have popup (not full screen modal) with its own navigation.

Thanks for your great module.

@aksonov
Copy link
Owner

aksonov commented Aug 4, 2017

Check Example project and Login modal popup

@dhavrosh
Copy link
Author

dhavrosh commented Aug 4, 2017

Thank you,
Is here some way to not open modal on full screen?
Like in version 3.* we have animationStyle, where I can set translateY of scenes

@aksonov
Copy link
Owner

aksonov commented Aug 4, 2017

Use lightboxfor it - check Example, Error popup. But probably it is only for one screen. Unfortunately no animationStyle for v4 - ask react-navigation team to add that feature...

@dhavrosh
Copy link
Author

dhavrosh commented Aug 4, 2017

Okay, thank you!

@dhavrosh dhavrosh closed this as completed Aug 4, 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