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

V4 : How to pass props to custom navBar using Action ? #2069

Closed
sylvainbaronnet opened this issue Jul 19, 2017 · 3 comments
Closed

V4 : How to pass props to custom navBar using Action ? #2069

sylvainbaronnet opened this issue Jul 19, 2017 · 3 comments

Comments

@sylvainbaronnet
Copy link
Contributor

sylvainbaronnet commented Jul 19, 2017

Hello,

Actions.profil({
  viewMode: 'full',
  pseudo: profil.pseudo,
})

In my custom navBar I don't get pseudo or viewMode as props. If I set a props to the scene I got it in the navBar.
How to get props set with Action parameters in custom navBar ?

@sylvainbaronnet
Copy link
Contributor Author

sylvainbaronnet commented Jul 19, 2017

I found that I can access them with Actions.currentParams

@aksonov
Copy link
Owner

aksonov commented Jul 19, 2017

@sylvainbaronnet Please check latest master

@sylvainbaronnet
Copy link
Contributor Author

Yes it now works as expected, thanks a lot !

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