From 4ab1bcb12495ff2d53ccd6740369f9f064eb572e Mon Sep 17 00:00:00 2001 From: Hedger Wang Date: Tue, 14 Jun 2016 16:26:40 -0700 Subject: [PATCH] Fix typo, rename NavigationHeaderScenesTabs-example.js. to NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js Summary: - Fix typo. - rename NavigationHeaderScenesTabs-example.js. to NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js Differential Revision: D3431559 fbshipit-source-id: 25cd0837efced2156d608577ee7c383009c2de24 --- ...s => NavigationCardStack-NavigationHeader-Tabs-example.js} | 2 +- .../NavigationExperimental/NavigationExperimentalExample.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename Examples/UIExplorer/NavigationExperimental/{NavigationHeaderScenesTabs-example.js => NavigationCardStack-NavigationHeader-Tabs-example.js} (99%) diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationHeaderScenesTabs-example.js b/Examples/UIExplorer/NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js similarity index 99% rename from Examples/UIExplorer/NavigationExperimental/NavigationHeaderScenesTabs-example.js rename to Examples/UIExplorer/NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js index 9109e6e45..ec661b086 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationHeaderScenesTabs-example.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationCardStack-NavigationHeader-Tabs-example.js @@ -204,7 +204,7 @@ class YourApplication extends Component { // This public method is optional. If exists, the UI explorer will call it // the "back button" is pressed. Normally this is the cases for Android only. handleBackAction(): boolean { - return this._onNavigate({type: 'pop'}); + return this._navigate({type: 'pop'}); } // This handles the navigation state changes. You're free and responsible diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js index d264ff6fc..54285d01a 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js @@ -33,8 +33,8 @@ const View = require('View'); * To learn how to use the Navigation API, take a look at the following example files: */ const EXAMPLES = { - 'NavigationCardStack Example': require('./NavigationCardStack-example'), - 'Header + Scenes + Tabs Example': require('./NavigationHeaderScenesTabs-example'), + 'CardStack + Header + Tabs Example': require('./NavigationCardStack-NavigationHeader-Tabs-example'), + 'CardStack Example': require('./NavigationCardStack-example'), }; const EXAMPLE_STORAGE_KEY = 'NavigationExperimentalExample';