Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Added documentation for programmatically switching tabs #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ppsreejith
Copy link

Programmatically switching tabs was not documented and was pretty hard to find so I thought this could help future readers :)

@chirag04
Copy link
Contributor

chirag04 commented Jan 4, 2017

you can use navigator.performAction?

@ppsreejith
Copy link
Author

I meant if you don't have access to this.props.navigation.

As said in the readme, this is primarily for the case where you want to change tabs from, say redux-saga or redux-thunk, programmatically where you don't have access to this.props.navigation.

@jasonmerino
Copy link

This documentation would be super handy to have published. It was kind of difficult to figure out how to use the NavigationActions.jumpToTab action.

@chirag04 I also didn't have access to this.props.navigation because I'm doing some routing in our app in a redux action file rather than a component file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants