diff --git a/packages/core/src/routers/StackRouter.js b/packages/core/src/routers/StackRouter.js index fc5c0da1..b5b0d77d 100644 --- a/packages/core/src/routers/StackRouter.js +++ b/packages/core/src/routers/StackRouter.js @@ -30,7 +30,9 @@ export default (routeConfigs, stackConfig = {}) => { // Loop through routes and find child routers routeNames.forEach(routeName => { - const screen = getScreenForRouteName(routeConfigs, routeName); + const routeConfig = routeConfigs[routeName]; + const screen = + routeConfig && routeConfig.screen ? routeConfig.screen : routeConfig; if (screen && screen.router) { // If it has a router it's a navigator. childRouters[routeName] = screen.router;