From 1cfcf9cf86133649435a589a6a360bcd4c889446 Mon Sep 17 00:00:00 2001 From: Nicolas Beck Date: Sat, 25 Nov 2017 09:15:44 +0100 Subject: [PATCH] fixed type of drawerLabel prop according to the docs and my own test 'string' is also allowed as drawerLabel --- types/react-navigation/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 8883d98da4..cd528e82e8 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -349,7 +349,8 @@ export interface NavigationDrawerScreenOptions extends NavigationScreenOptions { any > | null)); drawerLabel?: - React.ReactElement + string + | React.ReactElement | ((options: { tintColor: (string | null), focused: boolean }) => (React.ReactElement< any > | null));