diff --git a/packages/react-navigation/examples/NavigationPlayground/js/App.js b/packages/react-navigation/examples/NavigationPlayground/js/App.js index 94798b5e..231ce14f 100644 --- a/packages/react-navigation/examples/NavigationPlayground/js/App.js +++ b/packages/react-navigation/examples/NavigationPlayground/js/App.js @@ -19,6 +19,7 @@ import Banner from './Banner'; import CustomTabs from './CustomTabs'; import CustomTransitioner from './CustomTransitioner'; import Drawer from './Drawer'; +import MultipleDrawer from './MultipleDrawer'; import TabsInDrawer from './TabsInDrawer'; import ModalStack from './ModalStack'; import StacksInTabs from './StacksInTabs'; @@ -43,6 +44,11 @@ const ExampleRoutes = { description: 'Android-style drawer navigation', screen: Drawer, }, + MultipleDrawer: { + name: 'Multiple Drawer Example', + description: 'Add any drawer you need', + screen: MultipleDrawer, + }, TabsInDrawer: { name: 'Drawer + Tabs Example', description: 'A drawer combined with tabs', diff --git a/packages/react-navigation/examples/NavigationPlayground/js/MultipleDrawer.js b/packages/react-navigation/examples/NavigationPlayground/js/MultipleDrawer.js new file mode 100644 index 00000000..6921fa13 --- /dev/null +++ b/packages/react-navigation/examples/NavigationPlayground/js/MultipleDrawer.js @@ -0,0 +1,80 @@ +/** + * @flow + */ + +import React from 'react'; +import { Button, Platform, ScrollView, StyleSheet } from 'react-native'; +import { DrawerNavigator } from 'react-navigation'; +import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; +import SampleText from './SampleText'; + +const MyNavScreen = ({ navigation, banner }) => ( + + {banner} +