diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 6b263642ff..ddbe9b11e3 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -584,11 +584,11 @@ export interface StackNavigatorScreenOptions { export interface TabNavigatorScreenOptions { title?: string; tabBarVisible?: boolean; - tabBarIcon?: React.ReactElement; - tabBarLaben?: string - |React.ReactElement - | ((options: {focused: boolean, tintColor: string}) => React.ReactElement) - ; + tabBarIcon?: React.ReactElement + | ((options: { focused: boolean, tintColor: string }) => React.ReactElement); + tabBarLabel?: string + | React.ReactElement + | ((options: { focused: boolean, tintColor: string }) => React.ReactElement); } export interface DrawerNavigatorScreenOptions { diff --git a/types/react-navigation/react-navigation-tests.tsx b/types/react-navigation/react-navigation-tests.tsx index d01ae62640..a88a5d3a0b 100644 --- a/types/react-navigation/react-navigation-tests.tsx +++ b/types/react-navigation/react-navigation-tests.tsx @@ -3,6 +3,7 @@ import { View } from 'react-native'; import { addNavigationHelpers, StackNavigator, + TabNavigatorScreenOptions } from 'react-navigation'; const Start = ( @@ -28,3 +29,10 @@ const Router = (props: any) => ( } /> ); + +const tabNavigatorScreenOptions: TabNavigatorScreenOptions = { + title: 'title', + tabBarVisible: true, + tabBarIcon: , + tabBarLabel: 'label' +}