Status-react: :navigation-stack is grows on switching tabs

Created on 19 Jan 2017  路  5Comments  路  Source: status-im/status-react

image

these screens don't have back buttons so i think we don't need to store tabs in the stack,
and on Android it's not good behavior to go back through all stack

bug good first issue

All 5 comments

Looks like it would be better to use :navigation-replace for switching between tabs to avoid this.

Hi, I'm trying to handle this as an appetizer ... It seems quite simple :)

After looking a bit I only have one issue with the proposed solution:

If we use :navigation-replace to switch between tabs, we don't update :prev-tab-view-id and :prev-view-id when switching tabs. An alternative I would like to propose is to replace the call to push-view with replace-view in the handler for :navigate-to-tab. So we still update those but don't add to the navigation-stack ?

If OK for you guys I'll submit a PR with this fix (a one-line fix really :)

Hi, @mathvdh , it sounds fine, lets try :)

Should be closed?

yes, PR didn't include a fixes #747 which allows us to rely on Github auto-closing, good catch @etartakovsky

Was this page helpful?
0 / 5 - 0 ratings

Related issues

errorists picture errorists  路  3Comments

jarradh picture jarradh  路  4Comments

andmironov picture andmironov  路  3Comments

mfekadu picture mfekadu  路  3Comments

flexsurfer picture flexsurfer  路  3Comments