better back button navigation handling #408

Merged
akinwale merged 6 commits from back-button-navigation into master 2019-01-21 14:35:12 +01:00
akinwale commented 2019-01-19 19:35:41 +01:00 (Migrated from github.com)
No description provided.
neb-b (Migrated from github.com) reviewed 2019-01-19 19:35:41 +01:00
skhameneh (Migrated from github.com) approved these changes 2019-01-21 06:51:20 +01:00
@ -0,0 +7,4 @@
reducers[Constants.ACTION_PUSH_DRAWER_STACK] = (state, action) => {
const routeName = action.data;
const newStack = state.stack.slice();
skhameneh (Migrated from github.com) commented 2019-01-21 06:50:01 +01:00

Immutable.js can make this easier & more efficient

Immutable.js can make this easier & more efficient
skhameneh (Migrated from github.com) commented 2019-01-21 06:51:04 +01:00

Can you split this like:

  const shouldPopStack = (
    (drawerRouteIndex > 0 && drawerRouteIndex !== 5) || // not the discover nor wallet stack
    (drawerRouteIndex === 5 && nav.routes[0].routes[drawerRouteIndex].index === 0); // wallet stack, and tx history page not active
  );
Can you split this like: ``` const shouldPopStack = ( (drawerRouteIndex > 0 && drawerRouteIndex !== 5) || // not the discover nor wallet stack (drawerRouteIndex === 5 && nav.routes[0].routes[drawerRouteIndex].index === 0); // wallet stack, and tx history page not active ); ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#408
No description provided.