From 42ead04d9a620d167ffe2a6c579ed3e54b99c1f3 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Thu, 9 Feb 2017 01:36:27 +0530 Subject: [PATCH] Remove with navigation example --- examples/NavigationPlayground/js/App.js | 8 +---- .../NavigationPlayground/js/WithNavigation.js | 33 ------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 examples/NavigationPlayground/js/WithNavigation.js diff --git a/examples/NavigationPlayground/js/App.js b/examples/NavigationPlayground/js/App.js index 2550bb7b..6f8129d1 100644 --- a/examples/NavigationPlayground/js/App.js +++ b/examples/NavigationPlayground/js/App.js @@ -19,7 +19,6 @@ import ModalStack from './ModalStack'; import StacksInTabs from './StacksInTabs'; import SimpleStack from './SimpleStack'; import SimpleTabs from './SimpleTabs'; -import WithNavigation from './WithNavigation'; const ExampleRoutes = { SimpleStack: { @@ -43,7 +42,7 @@ const ExampleRoutes = { screen: CustomTabs, }, ModalStack: { - name: Platform.OS === 'ios' ? 'Modal Stack Example': 'Stack with Dynamic Header', + name: Platform.OS === 'ios' ? 'Modal Stack Example' : 'Stack with Dynamic Header', description: Platform.OS === 'ios' ? 'Stack navigation with modals' : 'Dynamically showing and hiding the header', screen: ModalStack, }, @@ -64,11 +63,6 @@ const ExampleRoutes = { screen: SimpleTabs, path: 'settings', }, - WithNavigation: { - name: 'withNavigation HOC', - description: 'Navigating using `withNavigation` HOC', - screen: WithNavigation, - }, }; const MainScreen = ({ navigation }) => ( diff --git a/examples/NavigationPlayground/js/WithNavigation.js b/examples/NavigationPlayground/js/WithNavigation.js deleted file mode 100644 index 40d4853a..00000000 --- a/examples/NavigationPlayground/js/WithNavigation.js +++ /dev/null @@ -1,33 +0,0 @@ -/* @flow */ - -import React from 'react'; -import { - View, - Text, - Button, -} from 'react-native'; -import { TabNavigator, withNavigation } from 'react-navigation'; - -const ButtonWithNavigation = withNavigation(({ navigation, to, ...rest }) => ( -