Respect custom background color in header wrapper

This commit is contained in:
Brent Vatne 2018-07-20 14:30:38 -07:00
parent cd3707d64b
commit 852e7e1974

View File

@ -580,8 +580,11 @@ class Header extends React.PureComponent {
<Animated.View
style={[
this.props.layoutInterpolator(this.props),
Platform.OS === 'ios'
? { backgroundColor: DEFAULT_BACKGROUND_COLOR }
Platform.OS === 'ios' && !options.headerTransparent
? {
backgroundColor:
safeHeaderStyle.backgroundColor || DEFAULT_BACKGROUND_COLOR,
}
: null,
]}
>