From 0b72eba8698c5d1ef014fe735c299321e6030352 Mon Sep 17 00:00:00 2001 From: Hedger Wang Date: Mon, 23 May 2016 10:48:35 -0700 Subject: [PATCH] Fix UI Explorer in Android. Summary: The refactor work (renamed `navigationState.children` to `navigationState.routes`) from D3333735 broken UI Explorer in Android. Fix it. Reviewed By: ericvicenti Differential Revision: D3334014 fbshipit-source-id: 345fbb5eabc792a49c6f2f82ce8c03679bc75940 --- .../NavigationExperimental/NavigationBasicExample.js | 2 +- Examples/UIExplorer/UIExplorerApp.android.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js index 4424f0913..d296ebbd7 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js @@ -59,7 +59,7 @@ const NavigationBasicExample = React.createClass({ return ( ); } - const title = UIExplorerStateTitleMap(stack.children[stack.index]); - const index = stack.children.length <= 1 ? 1 : stack.index; + const title = UIExplorerStateTitleMap(stack.routes[stack.index]); + const index = stack.routes.length <= 1 ? 1 : stack.index; - if (stack && stack.children[index]) { - const {key} = stack.children[index]; + if (stack && stack.routes[index]) { + const {key} = stack.routes[index]; const ExampleModule = UIExplorerList.Modules[key]; const ExampleComponent = UIExplorerExampleList.makeRenderable(ExampleModule); return ( @@ -171,7 +171,7 @@ class UIExplorerApp extends React.Component { );