From 7651aa904d3d6e5a6dc93d92a82b4d869906ba79 Mon Sep 17 00:00:00 2001 From: "satyajit.happy" Date: Thu, 12 Sep 2019 19:54:19 +0200 Subject: [PATCH] fix: loosen types for navigation prop --- src/utils/createTabNavigator.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/createTabNavigator.tsx b/src/utils/createTabNavigator.tsx index 6406cf4f8..c8764a287 100644 --- a/src/utils/createTabNavigator.tsx +++ b/src/utils/createTabNavigator.tsx @@ -18,7 +18,7 @@ import { type RouteConfig = NavigationRouteConfigMap< Options, - NavigationTabProp + NavigationTabProp >; type CommonProps = { @@ -62,7 +62,7 @@ export default function createTabNavigator< {}, NavigationTabRouterConfig, Partial, - NavigationTabProp + NavigationTabProp > ) => React.ComponentType< Pick> & ExtraProps @@ -262,7 +262,7 @@ export default function createTabNavigator< {}, NavigationTabRouterConfig, Partial, - NavigationTabProp + NavigationTabProp > = {} ) => { const router = TabRouter(routes, config as any);