# Bottom tab navigator maintains independent stacks per tab

- **Pattern:** `ab-001865` (`mobile-navigation-linking.navigation-ux.tab-stacks-independent`)
- **Severity:** medium
- **Lifecycle:** active
- **Last modified:** 2026-04-18
- **Canonical URL:** https://auditbuffet.com/patterns/ab-001865
- **License:** CC-BY-4.0 — attribute to AuditBuffet Pattern Catalog (https://auditbuffet.com/patterns/ab-001865)

## Why it matters

When all tabs share one stack, navigating deep into Home and then switching to Settings rewinds or contaminates Home's history — users lose the screen they were on, and tab icons stop feeling like separate surfaces. This breaks the tab metaphor that iOS and Android users expect, tanks session depth in product analytics, and forces users to re-navigate every time they glance at another tab. It is one of the most visible mobile-UX defects.

## Severity rationale

Medium because navigation still works but tab state is lost on every tab switch, degrading user trust.

## Remediation

Give each `Tab.Screen` its own `Stack.Navigator` component so history is preserved per tab. Put each stack in its own file under `src/navigation/`:

```tsx
function HomeStack() {
  return (
    <Stack.Navigator>
      <Stack.Screen name="HomeList" component={HomeListScreen} />
      <Stack.Screen name="HomeDetail" component={HomeDetailScreen} />
    </Stack.Navigator>
  )
}

<Tab.Navigator>
  <Tab.Screen name="HomeTab" component={HomeStack} />
  <Tab.Screen name="SettingsTab" component={SettingsStack} />
</Tab.Navigator>
```

## Detection

**The detection method for this pattern is part of AuditBuffet Pro.**

The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the [Mobile Navigation & Deep Linking Audit](https://auditbuffet.com/audits/mobile-navigation-linking). The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.

Taxons: user-experience

HTML version: https://auditbuffet.com/patterns/ab-001865
