From e3fdd2698a14f090bedf52def2a1d3192daff32a Mon Sep 17 00:00:00 2001 From: Habibi Date: Sat, 13 May 2017 19:10:05 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20react-navigation=20typo=20=E2=80=9CtabBar?= =?UTF-8?q?Label=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/react-navigation/index.d.ts | 2 +- types/react-navigation/react-navigation-tests.tsx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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' +}