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

Dynamically Navigate to a Scene #2436

Closed
clipsmm opened this issue Sep 26, 2017 · 1 comment
Closed

Dynamically Navigate to a Scene #2436

clipsmm opened this issue Sep 26, 2017 · 1 comment

Comments

@clipsmm
Copy link

clipsmm commented Sep 26, 2017

Version

  • react-native-router-flux v4.0.0-beta.17
  • react-native v0.47.1

Expected behaviour

Is there a way I can dynamically navigate to a scene. Say i have
<Scene key="a" ..blah>
<Scene key="b" ..blah>
<Scene key="b" ..blah>
<Scene key="c" ..blah>

js const links = [ { title: "Some Title", route: 'a'} ]
Then i render a list of links with onPress action mapping to the specific route
`js Actions.{links.router} or something like that'

@mcabs3
Copy link
Collaborator

mcabs3 commented Sep 26, 2017

Actions[links.route].call() would be what you are looking for

@mcabs3 mcabs3 closed this as completed Sep 26, 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