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