fix: unmountOnBlur on tasks+clients tabs - fixes stack freezing on previous detail screen
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user