We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af0a0cd + b5ca97f commit a792582Copy full SHA for a792582
index.js
@@ -348,9 +348,9 @@ class Router extends React.Component {
348
if (!_.has(statusBarProps, 'backgroundColor') && !_.has(statusBarProps, 'translucent')) {
349
let backgroundColor;
350
351
- if (this.state.route && this.state.route.headerStyle && this.state.router.headerStyle.backgroundColor) {
+ if (this.state.route && this.state.route.headerStyle) {
352
// If current route has specific header style
353
- const stateHeaderStyle = StyleSheet.flatten(this.props.headerStyle);
+ const stateHeaderStyle = StyleSheet.flatten(this.state.route.headerStyle);
354
355
if (stateHeaderStyle && stateHeaderStyle.backgroundColor) {
356
backgroundColor = stateHeaderStyle.backgroundColor;
0 commit comments