This commit is contained in:
Boof2015
2026-07-13 14:19:36 -04:00
parent 8880d9e411
commit 5b39e5d0c0
3 changed files with 31 additions and 14 deletions
+20
View File
@@ -0,0 +1,20 @@
/**
* Bottom tabs use React Native's legacy native Animated driver. On Android,
* timing animations are pre-sampled at 60 fps, so their positions repeat on a
* 120 Hz display. A critically damped native spring is evaluated from each
* display frame instead while preserving the current ~160 ms ease-out feel.
*/
export const TAB_TRANSITION_SETTLE_MS = 160;
export const TAB_TRANSITION_SPEC = {
animation: 'spring',
config: {
stiffness: 2500,
damping: 100,
mass: 1,
overshootClamping: true,
restDisplacementThreshold: 0.004,
restSpeedThreshold: 0.15,
},
} as const;