Skip to content

Commit 680c60c

Browse files
author
Steven Goff
committed
Mask header issues.
On transition, often the header will render as the page that we are navigating to despite animation in progress, this makes it less obvious that header is not in sync.
1 parent b50373f commit 680c60c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/views/CardStack/CardStack.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const emptyFunction = () => {};
4040
const theme = {
4141
white: '#FFFFFF',
4242
lightGrey: '#B7B7B7',
43+
primaryBlue: '#0074B4',
4344
};
4445

4546
type Props = {
@@ -168,11 +169,17 @@ class CardStack extends React.Component<Props, State> {
168169

169170
return (
170171
<View
171-
style={{ flex: 1, paddingTop, backgroundColor: theme.white }}
172+
style={{ flex: 1, backgroundColor: theme.white }}
172173
testID={`Screen_${scene.route.routeName}_${isActiveRoute
173174
? 'IsActive'
174175
: 'IsNotActive'}`}
175176
>
177+
<View
178+
style={{
179+
height: paddingTop,
180+
backgroundColor: theme.primaryBlue,
181+
}}
182+
/>
176183
<View style={{ flexDirection: 'row', flex: 1 }}>
177184
{hasSplitPaneComponent &&
178185
SplitPaneComponent && (

0 commit comments

Comments
 (0)