diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-22 15:03:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:03:01 -0500 |
commit | 18e9dc7509d0bf12dfabe7eba67e85553d4bac97 (patch) | |
tree | 04d303b7382761c60d1c27ffbc38b29e85fe0cd6 /src/routes/main/MainStackScreen.tsx | |
parent | d1a5193bc1d7117e8c331918ebaac68aa05b29a7 (diff) | |
parent | 324ae37524c8b6359e8b080fd8d10529f73dd9f8 (diff) |
Merge pull request #195 from shravyaramesh/tma576-fullscreen-comments
[TMA-576] Switched from modal to full screen view for comments
Diffstat (limited to 'src/routes/main/MainStackScreen.tsx')
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index 9250d0d1..3e425101 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -54,7 +54,7 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { })(); const modalStyle: StackNavigationOptions = { - cardStyle: {backgroundColor: 'transparent'}, + cardStyle: {backgroundColor: 'rgba(80,80,80,0.9)'}, gestureDirection: 'vertical', cardOverlayEnabled: true, cardStyleInterpolator: ({current: {progress}}) => ({ @@ -64,14 +64,6 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { outputRange: [0, 0.25, 0.7, 1], }), }, - overlayStyle: { - backgroundColor: '#505050', - opacity: progress.interpolate({ - inputRange: [0, 1], - outputRange: [0, 0.9], - extrapolate: 'clamp', - }), - }, }), }; @@ -175,9 +167,6 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { <MainStack.Screen name="MomentCommentsScreen" component={MomentCommentsScreen} - options={{ - ...modalStyle, - }} initialParams={{screenType}} /> <MainStack.Screen |