fix: unmountOnBlur on tasks+clients tabs - fixes stack freezing on previous detail screen

This commit is contained in:
Nemo
2026-03-24 12:02:51 +08:00
parent f346951052
commit 9629384349

View File

@@ -29,7 +29,7 @@ export default function AppLayout() {
/>
<Tabs.Screen
name="clients"
options={{ title: 'Clients', tabBarIcon: ({ color }) => <Icon name="users" size={22} color={color} /> }}
options={{ title: 'Clients', tabBarIcon: ({ color }) => <Icon name="users" size={22} color={color} />, unmountOnBlur: true }}
/>
<Tabs.Screen
name="payments"
@@ -37,7 +37,7 @@ export default function AppLayout() {
/>
<Tabs.Screen
name="tasks"
options={{ title: 'Tickets', tabBarIcon: ({ color }) => <Icon name="ticket" size={22} color={color} /> }}
options={{ title: 'Tickets', tabBarIcon: ({ color }) => <Icon name="ticket" size={22} color={color} />, unmountOnBlur: true }}
/>
<Tabs.Screen
name="profile"