mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 01:28:16 +00:00
34 lines
884 B
JavaScript
34 lines
884 B
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Platform, ScrollView } from 'react-native';
|
|
import { createDrawerNavigator } from 'react-navigation';
|
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
import SimpleTabs from './SimpleTabs';
|
|
import StacksOverTabs from './StacksOverTabs';
|
|
|
|
const TabsInDrawer = createDrawerNavigator({
|
|
SimpleTabs: {
|
|
screen: SimpleTabs,
|
|
navigationOptions: {
|
|
drawerLabel: 'Simple tabs',
|
|
drawerIcon: ({ tintColor }) => (
|
|
<MaterialIcons name="filter-1" size={24} style={{ color: tintColor }} />
|
|
),
|
|
},
|
|
},
|
|
StacksOverTabs: {
|
|
screen: StacksOverTabs,
|
|
navigationOptions: {
|
|
drawerLabel: 'Stacks Over Tabs',
|
|
drawerIcon: ({ tintColor }) => (
|
|
<MaterialIcons name="filter-2" size={24} style={{ color: tintColor }} />
|
|
),
|
|
},
|
|
},
|
|
});
|
|
|
|
export default TabsInDrawer;
|