diff options
| author | Brian Kim <brian@tagg.id> | 2021-05-17 16:51:48 -0700 |
|---|---|---|
| committer | Brian Kim <brian@tagg.id> | 2021-05-17 16:51:48 -0700 |
| commit | 4aca9fc0916240ce5e4284d625f240998db17bff (patch) | |
| tree | 0a3c75d12487c4298bce1fb9ddb8d8c8ebf4d4e6 /src/components/taggs/TaggsBar.tsx | |
| parent | 6a74b270d24f04e36821398b83863d5b97e1b44b (diff) | |
| parent | 183ce2b263e7282f42d204ebd59676b8e28352ec (diff) | |
Merge with master
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
| -rw-r--r-- | src/components/taggs/TaggsBar.tsx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx index 4d567b25..a7e8fc7a 100644 --- a/src/components/taggs/TaggsBar.tsx +++ b/src/components/taggs/TaggsBar.tsx @@ -113,13 +113,11 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ loadData(); } }, [taggsNeedUpdate, user]); - const paddingTopStylesProgress = useDerivedValue(() => - interpolate( - y.value, - [PROFILE_CUTOUT_BOTTOM_Y, PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight], - [0, 1], - Extrapolate.CLAMP, - ), + const paddingTopStylesProgress = interpolate( + y.value, + [PROFILE_CUTOUT_BOTTOM_Y, PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight], + [0, 1], + Extrapolate.CLAMP, ); const shadowOpacityStylesProgress = useDerivedValue(() => interpolate( @@ -134,7 +132,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({ ); const animatedStyles = useAnimatedStyle(() => ({ shadowOpacity: shadowOpacityStylesProgress.value / 5, - paddingTop: paddingTopStylesProgress.value * insetTop, + paddingTop: paddingTopStylesProgress + insetTop, })); return taggs.length > 0 ? ( |
