File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
versioned_docs/version-7.x Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ function TabNavigator({
322
322
}
323
323
324
324
export function createMyNavigator<
325
- ParamList extends ParamListBase,
326
- NavigatorID extends string | undefined = undefined,
327
- TypeBag extends NavigatorTypeBagBase = {
325
+ const ParamList extends ParamListBase,
326
+ const NavigatorID extends string | undefined = undefined,
327
+ const TypeBag extends NavigatorTypeBagBase = {
328
328
ParamList: ParamList;
329
329
NavigatorID: NavigatorID;
330
330
State: TabNavigationState<ParamList>;
@@ -339,9 +339,7 @@ export function createMyNavigator<
339
339
};
340
340
Navigator: typeof TabNavigator;
341
341
},
342
- Config extends StaticConfig<TypeBag> | undefined =
343
- | StaticConfig<TypeBag>
344
- | undefined,
342
+ const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>,
345
343
>(config ?: Config ): TypedNavigator<TypeBag, Config> {
346
344
return createNavigatorFactory (TabNavigator)(config);
347
345
}
You can’t perform that action at this time.
0 commit comments