Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 1f6fc61

Browse files
committed
fix: hide background for unfocused header in fade
Otherwise the header background below shows up when header mode is none
1 parent ca741b6 commit 1f6fc61

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/TransitionConfigs/HeaderStyleInterpolators.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ export function forFade({
9898
leftButtonStyle: { opacity },
9999
rightButtonStyle: { opacity },
100100
titleStyle: { opacity },
101-
// For both bakgrounds to cross-fade properly, we don't want to animate the one below from 0
102-
// Because 2 semitransparent backgrounds on top of each other will always have some transparency
103-
// And this will make the stuff under them visible (usually white) which isn't expected
104-
backgroundStyle: { opacity: current },
101+
backgroundStyle: { opacity },
105102
};
106103
}
107104

0 commit comments

Comments
 (0)