mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 01:28:16 +00:00
* wip * fix imports * use stylesheet for margin stylesheet now correct * also remove old headerLeft * improve header buttons color * remove ios button margin
46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Platform, ScrollView } from 'react-native';
|
|
import { TabNavigator, DrawerNavigator } from 'react-navigation';
|
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
import SimpleTabs from './SimpleTabs';
|
|
import StacksOverTabs from './StacksOverTabs';
|
|
|
|
const TabsInDrawer = DrawerNavigator({
|
|
SimpleTabs: {
|
|
screen: SimpleTabs,
|
|
navigationOptions: {
|
|
drawer: () => ({
|
|
label: 'Simple Tabs',
|
|
icon: ({ tintColor }) => (
|
|
<MaterialIcons
|
|
name="filter-1"
|
|
size={24}
|
|
style={{ color: tintColor }}
|
|
/>
|
|
),
|
|
}),
|
|
},
|
|
},
|
|
StacksOverTabs: {
|
|
screen: StacksOverTabs,
|
|
navigationOptions: {
|
|
drawer: () => ({
|
|
label: 'Stacks Over Tabs',
|
|
icon: ({ tintColor }) => (
|
|
<MaterialIcons
|
|
name="filter-2"
|
|
size={24}
|
|
style={{ color: tintColor }}
|
|
/>
|
|
),
|
|
}),
|
|
},
|
|
},
|
|
});
|
|
|
|
export default TabsInDrawer;
|