We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264f7fa commit d60685bCopy full SHA for d60685b
src/components/BottomNavigation/BottomNavigation.tsx
@@ -509,14 +509,14 @@ const BottomNavigation = <Route extends BaseRoute>({
509
? 1
510
: 0;
511
512
+ const offsetTarget = focused ? 0 : FAR_FAR_AWAY;
513
+
514
const top = sceneAnimationEnabled
515
? offsetsAnims[index].interpolate({
516
inputRange: [0, 1],
- outputRange: [0, FAR_FAR_AWAY],
517
+ outputRange: [0, offsetTarget],
518
})
- : focused
- ? 0
519
- : FAR_FAR_AWAY;
+ : offsetTarget;
520
521
const left =
522
sceneAnimationType === 'shifting'
0 commit comments