aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggsBar.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-02 19:01:22 -0400
committerIvan Chen <ivan@tagg.id>2021-04-02 19:01:22 -0400
commit7b061c35948609a1f7f3ef3cef8b5e5be964d4c2 (patch)
tree9b767436ec88912b02ee38d3d99d2e7c7c2287a0 /src/components/taggs/TaggsBar.tsx
parent69613af86a9364f72dc2ce5f24722a3eb4b94ed2 (diff)
commented out all the old reanimated stuff, added TODOs for leon
Diffstat (limited to 'src/components/taggs/TaggsBar.tsx')
-rw-r--r--src/components/taggs/TaggsBar.tsx41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx
index 567b58de..a87da3e2 100644
--- a/src/components/taggs/TaggsBar.tsx
+++ b/src/components/taggs/TaggsBar.tsx
@@ -112,25 +112,28 @@ const TaggsBar: React.FC<TaggsBarProps> = ({
loadData();
}
}, [taggsNeedUpdate, user]);
-
- const shadowOpacity: Animated.Node<number> = interpolate(y, {
- inputRange: [
- PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight,
- PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight + 20,
- ],
- outputRange: [0, 0.2],
- extrapolate: Extrapolate.CLAMP,
- });
- const paddingTop: Animated.Node<number> = interpolate(y, {
- inputRange: [
- PROFILE_CUTOUT_BOTTOM_Y +
- profileBodyHeight -
- (useSafeAreaInsets().top + 10),
- PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight,
- ],
- outputRange: [10, useSafeAreaInsets().top],
- extrapolate: Extrapolate.CLAMP,
- });
+// TODO: (Leon) use reanimated v2
+ const shadowOpacity = 0;
+ // const shadowOpacity: Animated.Node<number> = interpolate(y, {
+ // inputRange: [
+ // PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight,
+ // PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight + 20,
+ // ],
+ // outputRange: [0, 0.2],
+ // extrapolate: Extrapolate.CLAMP,
+ // });
+ // TODO: (Leon) use reanimated v2
+ const paddingTop = 0;
+ // const paddingTop: Animated.Node<number> = interpolate(y, {
+ // inputRange: [
+ // PROFILE_CUTOUT_BOTTOM_Y +
+ // profileBodyHeight -
+ // (useSafeAreaInsets().top + 10),
+ // PROFILE_CUTOUT_BOTTOM_Y + profileBodyHeight,
+ // ],
+ // outputRange: [10, useSafeAreaInsets().top],
+ // extrapolate: Extrapolate.CLAMP,
+ // });
return taggs.length > 0 ? (
<View