Skip to content

Commit

Permalink
fix: will not navigate to a child TabNavigator that consumes the SHOW…
Browse files Browse the repository at this point in the history
…_TAB or HIDE_TAB action anymore
  • Loading branch information
Jean-François Puissant committed Jan 30, 2018
1 parent f89699a commit 084c52e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routers/TabRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ export default (
if (tabState !== routes[i]) {
routes = [...routes];
routes[i] = tabState;
index = i;
if (
action.type !== NavigationActions.SHOW_TAB &&
action.type !== NavigationActions.HIDE_TAB
)
index = i;
return true;
}
return false;
Expand Down

0 comments on commit 084c52e

Please sign in to comment.