feat: add a setParams method to update route params

This commit is contained in:
satyajit.happy
2019-07-14 14:45:48 +02:00
parent 59aacc3080
commit 470a5a1d24
3 changed files with 104 additions and 12 deletions

View File

@@ -144,6 +144,12 @@ export type NavigationProp<
(ParamList[RouteName] extends void
? never
: { params: ParamList[RouteName] });
/**
* Update the param object for the route.
* The new params will be shallow merged with the old one.
*/
setParams(params: ParamList[RouteName]): void;
};
export type CompositeNavigationProp<