aboutsummaryrefslogtreecommitdiff
path: root/src/routes/main/MainStackScreen.tsx
diff options
context:
space:
mode:
authorLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2021-04-03 21:25:32 -0400
committerLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2021-04-03 21:25:32 -0400
commit1cd94d9a012543683126094251b2e5562e2eea21 (patch)
tree6fbcbe03e7d7094819aa945c78b54203f306c9c9 /src/routes/main/MainStackScreen.tsx
parentcce0f8510ac691618c69d76daacac4752800b8c1 (diff)
Fix bottom sheet animation
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],
+ }),
},
}),
};