From c345ef1d0b82e0c0ec1ebd3a3ced4ed5b5e835e4 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Mon, 25 Jan 2021 17:13:24 +0100 Subject: [PATCH] fix: fix transparent modal on web --- packages/stack/src/views/Stack/CardStack.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stack/src/views/Stack/CardStack.tsx b/packages/stack/src/views/Stack/CardStack.tsx index 9033d544e7..24527a1683 100755 --- a/packages/stack/src/views/Stack/CardStack.tsx +++ b/packages/stack/src/views/Stack/CardStack.tsx @@ -507,7 +507,7 @@ export default class CardStack extends React.Component { // 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;