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

Commit

Permalink
fix: loosen types for navigation prop
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Sep 12, 2019
1 parent 2a91458 commit 7651aa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/createTabNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {

type RouteConfig<Options> = NavigationRouteConfigMap<
Options,
NavigationTabProp
NavigationTabProp<NavigationRoute, any>
>;

type CommonProps = {
Expand Down Expand Up @@ -62,7 +62,7 @@ export default function createTabNavigator<
{},
NavigationTabRouterConfig,
Partial<Options>,
NavigationTabProp
NavigationTabProp<NavigationRoute, any>
>
) => React.ComponentType<
Pick<Props, Exclude<keyof Props, keyof NavigationViewProps>> & ExtraProps
Expand Down Expand Up @@ -262,7 +262,7 @@ export default function createTabNavigator<
{},
NavigationTabRouterConfig,
Partial<Options>,
NavigationTabProp
NavigationTabProp<NavigationRoute, any>
> = {}
) => {
const router = TabRouter(routes, config as any);
Expand Down

0 comments on commit 7651aa9

Please sign in to comment.