Skip to content

Commit

Permalink
fix: fix transparent modal on web
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jan 29, 2021
1 parent 865d8b3 commit c345ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack/src/views/Stack/CardStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c345ef1

Please sign in to comment.