mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 21:05:29 +08:00
fix: improve types for route prop in screenOptions
This commit is contained in:
@@ -116,12 +116,12 @@ export type ActionCreators<Action extends NavigationAction> = {
|
||||
[key: string]: (...args: any) => Action;
|
||||
};
|
||||
|
||||
export type DefaultRouterOptions = {
|
||||
export type DefaultRouterOptions<RouteName extends string = string> = {
|
||||
/**
|
||||
* Name of the route to focus by on initial render.
|
||||
* If not specified, usually the first route is used.
|
||||
*/
|
||||
initialRouteName?: string;
|
||||
initialRouteName?: RouteName;
|
||||
};
|
||||
|
||||
export type RouterFactory<
|
||||
|
||||
Reference in New Issue
Block a user