File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ class Router extends React.Component {
323
323
}
324
324
325
325
// Check for values provided to current route
326
- if ( this . state . route . statusBarProps ) {
326
+ if ( this . state . route && this . state . route . statusBarProps ) {
327
327
statusBarProps = _ . defaults ( this . state . route . statusBarProps , statusBarProps ) ;
328
328
}
329
329
@@ -332,7 +332,7 @@ class Router extends React.Component {
332
332
if ( ! _ . has ( statusBarProps , 'backgroundColor' ) && ! _ . has ( statusBarProps , 'translucent' ) ) {
333
333
let backgroundColor ;
334
334
335
- if ( this . state . route . headerStyle && this . state . router . headerStyle . backgroundColor ) {
335
+ if ( this . state . route && this . state . route . headerStyle && this . state . router . headerStyle . backgroundColor ) {
336
336
// If current route has specific header style
337
337
const stateHeaderStyle = StyleSheet . flatten ( this . props . headerStyle ) ;
338
338
You can’t perform that action at this time.
0 commit comments