From 14a16d7d392891da9afe532b2272a4ce98ecf2d0 Mon Sep 17 00:00:00 2001 From: davojan Date: Tue, 15 Aug 2017 16:32:04 +0300 Subject: [PATCH 1/2] Allow 1-deep nested arrays of Scenes to support structured configuration for larger projects --- src/navigationStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/navigationStore.js b/src/navigationStore.js index a13c0c582..c9681767b 100644 --- a/src/navigationStore.js +++ b/src/navigationStore.js @@ -290,7 +290,8 @@ class NavigationStore { commonProps.drawerImage = commonProps.drawerImage || _drawerImage; } - const children = !Array.isArray(parentProps.children) ? [parentProps.children] : [...parentProps.children]; + // allow 1-deep nested arrays of Scenes to support structured configuration for larger projects + const children = !Array.isArray(parentProps.children) ? [parentProps.children] : [].concat.apply([], parentProps.children); // add clone scenes if (!drawer && !tabs) { children.push(...clones); From 37fac22872bfcbfa49b6e1f16365b467bd1bf65e Mon Sep 17 00:00:00 2001 From: davojan Date: Wed, 16 Aug 2017 12:29:07 +0300 Subject: [PATCH 2/2] updated dist-version of the changed source --- dist/navigationStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/navigationStore.js b/dist/navigationStore.js index 0255686b6..fec7ce95e 100644 --- a/dist/navigationStore.js +++ b/dist/navigationStore.js @@ -290,7 +290,8 @@ if(drawer){ commonProps.drawerImage=commonProps.drawerImage||_menu_burger2.default; } -var children=!Array.isArray(parentProps.children)?[parentProps.children]:[].concat(_toConsumableArray(parentProps.children)); + +var children=!Array.isArray(parentProps.children)?[parentProps.children]:[].concat.apply([],parentProps.children); if(!drawer&&!tabs){ children.push.apply(children,_toConsumableArray(clones));