fix: fix transparent modal on web

This commit is contained in:
Satyajit Sahoo
2021-01-25 17:13:24 +01:00
parent 865d8b3e51
commit c345ef1d0b

View File

@@ -507,7 +507,7 @@ export default class CardStack extends React.Component<Props, State> {
// For the old implementation, it stays the same it was
let isScreenActive: Animated.AnimatedInterpolation | 2 | 1 | 0 = 1;
if (shouldUseActivityState) {
if (shouldUseActivityState || Platform.OS === 'web') {
if (index < self.length - activeScreensLimit - 1) {
// screen should be inactive because it is too deep in the stack
isScreenActive = STATE_INACTIVE;