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

How can I pass parameters to a tabbar's child? #2065

Closed
mescalchuan opened this issue Jul 19, 2017 · 5 comments
Closed

How can I pass parameters to a tabbar's child? #2065

mescalchuan opened this issue Jul 19, 2017 · 5 comments

Comments

@mescalchuan
Copy link

mescalchuan commented Jul 19, 2017

Here is my scenes

<Scene key='tabbar' tabs hideNavBar >
            <Scene key='home' title='home' component={HomeComponent}></Scene>
            <Scene key='cart' title='cart' component={CartComponent}></Scene>
            <Scene key='personal' title='personal' component={PersonalComponent}></Scene>
</Scene>
<Scene key='error' title='error' component={ErrorPage}></Scene>

I want to jump from error scene to personal scene and pass something,but I can't get these parameters at personal scene.
On the contrary,I jump from personal scene to error scene and pass parameters,I can get them at error scene.

@luco
Copy link
Contributor

luco commented Jul 19, 2017

Where's your code?

@mescalchuan
Copy link
Author

@luco Now you can see the demo

@aksonov
Copy link
Owner

aksonov commented Jul 19, 2017

@1335382915 ReactNavigation doesn't pass params for some reason. I've just committed fix to use 'refresh' after 'navigate'. Please check latest master. Example also contains demo when Tab5 could be switched with data param (but you have to switch Example to latest master as well)

@aksonov
Copy link
Owner

aksonov commented Jul 19, 2017

Try beta.12 now

@aksonov aksonov closed this as completed Jul 19, 2017
@mescalchuan
Copy link
Author

@aksonov Thank you

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