Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 7651aa9

Browse files
committed
fix: loosen types for navigation prop
1 parent 2a91458 commit 7651aa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/createTabNavigator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818

1919
type RouteConfig<Options> = NavigationRouteConfigMap<
2020
Options,
21-
NavigationTabProp
21+
NavigationTabProp<NavigationRoute, any>
2222
>;
2323

2424
type CommonProps = {
@@ -62,7 +62,7 @@ export default function createTabNavigator<
6262
{},
6363
NavigationTabRouterConfig,
6464
Partial<Options>,
65-
NavigationTabProp
65+
NavigationTabProp<NavigationRoute, any>
6666
>
6767
) => React.ComponentType<
6868
Pick<Props, Exclude<keyof Props, keyof NavigationViewProps>> & ExtraProps
@@ -262,7 +262,7 @@ export default function createTabNavigator<
262262
{},
263263
NavigationTabRouterConfig,
264264
Partial<Options>,
265-
NavigationTabProp
265+
NavigationTabProp<NavigationRoute, any>
266266
> = {}
267267
) => {
268268
const router = TabRouter(routes, config as any);

0 commit comments

Comments
 (0)