Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ class Router extends React.Component {
if (!_.has(statusBarProps, 'backgroundColor') && !_.has(statusBarProps, 'translucent')) {
let backgroundColor;

if (this.state.route && this.state.route.headerStyle && this.state.router.headerStyle.backgroundColor) {
if (this.state.route && this.state.route.headerStyle) {
// If current route has specific header style
const stateHeaderStyle = StyleSheet.flatten(this.props.headerStyle);
const stateHeaderStyle = StyleSheet.flatten(this.state.route.headerStyle);

if (stateHeaderStyle && stateHeaderStyle.backgroundColor) {
backgroundColor = stateHeaderStyle.backgroundColor;
Expand Down