diff options
author | Ashm Walia <ashmwalia@outlook.com> | 2021-01-20 20:47:10 -0800 |
---|---|---|
committer | Ashm Walia <ashmwalia@outlook.com> | 2021-01-20 20:47:10 -0800 |
commit | 69bcee9740903f3d142d964f00756ca176ecab36 (patch) | |
tree | 6f40cf6f39bc7c26649f21353652e3f38241a8c2 /src | |
parent | 30a7a34f8c5eb379de4e5ebe38cfeeb259f3f1e3 (diff) |
looks like donw
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index b4eaa213..389b1a9d 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -156,7 +156,19 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { name="IndividualMoment" component={IndividualMoment} options={{ - ...modalStyle, + gestureEnabled: false, + cardStyle: { + backgroundColor: 'rgba(52, 52, 52, 0.8)', + }, + cardOverlayEnabled: true, + cardStyleInterpolator: ({current: {progress}}) => ({ + cardStyle: { + opacity: progress.interpolate({ + inputRange: [0, 0.5, 0.9, 1], + outputRange: [0, 0.25, 0.7, 1], + }), + }, + }), }} initialParams={{screenType}} /> |