Merge pull request #16805 from jeremistadler/master

[React-Navigation] Add TabBarTop & TabBarBottom types
This commit is contained in:
Eloy Durán
2017-05-30 21:49:57 +02:00
committed by GitHub
2 changed files with 13 additions and 2 deletions

View File

@@ -621,3 +621,6 @@ export interface NavgationComponentProps<T> {
},
}
}
export const TabBarTop: React.ReactElement<any>;
export const TabBarBottom: React.ReactElement<any>;

View File

@@ -3,7 +3,10 @@ import { View } from 'react-native';
import {
addNavigationHelpers,
StackNavigator,
TabNavigatorScreenOptions
TabNavigatorScreenOptions,
TabNavigatorConfig,
TabBarTop,
TabBarBottom,
} from 'react-navigation';
const Start = (
@@ -34,5 +37,10 @@ const tabNavigatorScreenOptions: TabNavigatorScreenOptions = {
title: 'title',
tabBarVisible: true,
tabBarIcon: <View />,
tabBarLabel: 'label'
tabBarLabel: 'label',
}
const tabNavigatorConfig: TabNavigatorConfig = {
lazy: true,
tabBarComponent: TabBarTop,
}