aboutsummaryrefslogtreecommitdiff
path: root/src/routes/main/MainStackScreen.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/routes/main/MainStackScreen.tsx
parent69613af86a9364f72dc2ce5f24722a3eb4b94ed2 (diff)
commented out all the old reanimated stuff, added TODOs for leon
Diffstat (limited to 'src/routes/main/MainStackScreen.tsx')
-rw-r--r--src/routes/main/MainStackScreen.tsx18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx
index 8068b893..b72ab779 100644
--- a/src/routes/main/MainStackScreen.tsx
+++ b/src/routes/main/MainStackScreen.tsx
@@ -98,10 +98,11 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => {
cardOverlayEnabled: true,
cardStyleInterpolator: ({current: {progress}}) => ({
cardStyle: {
- opacity: progress.interpolate({
- inputRange: [0, 0.5, 0.9, 1],
- outputRange: [0, 0.25, 0.7, 1],
- }),
+ // TODO: (Leon) use reanimated v2
+ // opacity: progress.interpolate({
+ // inputRange: [0, 0.5, 0.9, 1],
+ // outputRange: [0, 0.25, 0.7, 1],
+ // }),
},
}),
};
@@ -348,10 +349,11 @@ export const modalStyle: StackNavigationOptions = {
cardOverlayEnabled: true,
cardStyleInterpolator: ({current: {progress}}) => ({
cardStyle: {
- opacity: progress.interpolate({
- inputRange: [0, 0.5, 0.9, 1],
- outputRange: [0, 0.25, 0.7, 1],
- }),
+ // TODO: (Leon) use reanimated v2
+ // opacity: progress.interpolate({
+ // inputRange: [0, 0.5, 0.9, 1],
+ // outputRange: [0, 0.25, 0.7, 1],
+ // }),
},
}),
};