File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
example/src/screens/usage Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments