Fix react-navigation typo “tabBarLabel”

This commit is contained in:
Habibi
2017-05-13 19:10:05 +07:00
parent e251c14388
commit e3fdd2698a
2 changed files with 8 additions and 1 deletions

View File

@@ -585,7 +585,7 @@ export interface TabNavigatorScreenOptions {
title?: string;
tabBarVisible?: boolean;
tabBarIcon?: React.ReactElement<any>;
tabBarLaben?: string
tabBarLabel?: string
|React.ReactElement<any>
| ((options: {focused: boolean, tintColor: string}) => React.ReactElement<any>)
;

View File

@@ -28,3 +28,10 @@ const Router = (props: any) => (
}
/>
);
const tabNavigatorScreenOptions: TabNavigatorScreenOptions = {
title: 'title',
tabBarVisible: true,
tabBarIcon: <View />,
tabBarLabel: 'label'
}