2018-01-17 14:43:28 -08:00
|
|
|
/**
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
2018-03-13 21:13:19 +01:00
|
|
|
import { Platform, ScrollView } from 'react-native';
|
2018-03-18 17:50:02 -04:00
|
|
|
import { createDrawerNavigator } from 'react-navigation';
|
2018-01-17 14:43:28 -08:00
|
|
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
|
|
import SimpleTabs from './SimpleTabs';
|
|
|
|
import StacksOverTabs from './StacksOverTabs';
|
|
|
|
|
2018-03-14 15:21:38 -07:00
|
|
|
const TabsInDrawer = createDrawerNavigator({
|
2018-01-17 14:43:28 -08:00
|
|
|
SimpleTabs: {
|
|
|
|
screen: SimpleTabs,
|
|
|
|
navigationOptions: {
|
2018-08-21 15:25:00 -07:00
|
|
|
drawerLabel: 'Simple tabs',
|
|
|
|
drawerIcon: ({ tintColor }) => (
|
|
|
|
<MaterialIcons name="filter-1" size={24} style={{ color: tintColor }} />
|
|
|
|
),
|
2018-01-17 14:43:28 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
StacksOverTabs: {
|
|
|
|
screen: StacksOverTabs,
|
|
|
|
navigationOptions: {
|
2018-08-21 15:25:00 -07:00
|
|
|
drawerLabel: 'Stacks Over Tabs',
|
|
|
|
drawerIcon: ({ tintColor }) => (
|
|
|
|
<MaterialIcons name="filter-2" size={24} style={{ color: tintColor }} />
|
|
|
|
),
|
2018-01-17 14:43:28 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default TabsInDrawer;
|