Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/components/BottomNavigation/BottomNavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,10 @@ const BottomNavigationBar = <Route extends BaseRoute>({
: 1;

// Scale horizontally the outline pill
const outlineScale = focused
? active.interpolate({
inputRange: [0, 1],
outputRange: [0.5, 1],
})
: 0;
const outlineScale = active.interpolate({
inputRange: [0, 1],
outputRange: focused ? [0.5, 1] : [0, 0],
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Tab Outline Fades Abruptly on Unfocus

The outline for a previously focused tab disappears abruptly instead of animating out smoothly. When focused becomes false, the outlineScale's outputRange immediately switches to [0, 0], causing an instant disappearance even while the active animation value is still transitioning.

Fix in Cursor Fix in Web


const badge = getBadge({ route });

Expand Down Expand Up @@ -740,7 +738,7 @@ const BottomNavigationBar = <Route extends BaseRoute>({
},
]}
>
{isV3 && focused && (
{isV3 && (
<Animated.View
style={[
styles.outline,
Expand Down