Skip to content

Commit 285838d

Browse files
committed
chore: improve naming convention of input/output ranges
1 parent ce2ddf9 commit 285838d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/src/screens/usage/TwitterProfile.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ const HeaderComponent: React.FC<ScrollHeaderProps> = ({ showNavBar, scrollY }) =
6767
const bannerTranslation = useDerivedValue(() => {
6868
return interpolate(
6969
scrollY.value,
70-
[0, AVATAR_SIZE_VALUE],
71-
[0, -AVATAR_SIZE_VALUE],
70+
[0, BANNER_BOTTOM_HEIGHT_ADDITION],
71+
[0, -BANNER_BOTTOM_HEIGHT_ADDITION],
7272
Extrapolate.CLAMP
7373
);
7474
});
@@ -78,13 +78,13 @@ const HeaderComponent: React.FC<ScrollHeaderProps> = ({ showNavBar, scrollY }) =
7878
});
7979

8080
const profileContainerTranslationY = useDerivedValue(() => {
81-
return -scrollY.value + AVATAR_SIZE_VALUE / 2;
81+
return -scrollY.value + BANNER_BOTTOM_HEIGHT_ADDITION / 2;
8282
});
8383

8484
const profileImageScale = useDerivedValue(() => {
8585
return interpolate(
8686
scrollY.value,
87-
[0, AVATAR_SIZE_VALUE],
87+
[0, BANNER_BOTTOM_HEIGHT_ADDITION],
8888
[AVATAR_START_SCALE, AVATAR_END_SCALE],
8989
Extrapolate.CLAMP
9090
);

0 commit comments

Comments
 (0)