mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-25 17:45:34 +00:00
* Add SafeAreaView - JS only version * Add SafeAreaView * Looking pretty good * Small refactor * Remove console.log * Fix merge conflict with Header flow types. * Fix conflict with itemsContainerStyle. * Fix merge conflict. * Fix merge conflict, yarn and package.json from fixflow * Fix merge conflict, navigation playground yarn.lock and package.json with fixflow * Now it can work on lower versions of RN * Snapshots merge conflict. * Update DrawerNavigator snapshot. * Fix conflict with iconContainerStyle * Add support for correct status bar height on iPad. * Update jest snapshots. * Update StackNavigator snapshot. * Use modulo instead of while * Fix landscape tab bar width on < iOS 11
46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
/**
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Button, 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;
|