diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 6b263642ff..cf510e4cd1 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -585,7 +585,7 @@ export interface TabNavigatorScreenOptions { title?: string; tabBarVisible?: boolean; tabBarIcon?: React.ReactElement; - tabBarLaben?: string + tabBarLabel?: string |React.ReactElement | ((options: {focused: boolean, tintColor: string}) => React.ReactElement) ; diff --git a/types/react-navigation/react-navigation-tests.tsx b/types/react-navigation/react-navigation-tests.tsx index d01ae62640..6182dfd64c 100644 --- a/types/react-navigation/react-navigation-tests.tsx +++ b/types/react-navigation/react-navigation-tests.tsx @@ -28,3 +28,10 @@ const Router = (props: any) => ( } /> ); + +const tabNavigatorScreenOptions: TabNavigatorScreenOptions = { + title: 'title', + tabBarVisible: true, + tabBarIcon: , + tabBarLabel: 'label' +}