[flow] Mark key in StackActions.replace as optional (#5073)

This commit is contained in:
Serge Lebedev
2018-10-11 00:27:00 +06:00
parent 797a535708
commit 3d6460af8e

View File

@@ -818,7 +818,7 @@ declare module 'react-navigation' {
actions: Array<NavigationNavigateAction>,
}) => NavigationResetAction,
replace: (payload: {
key: string,
key?: string,
routeName: string,
params?: NavigationParams,
action?: NavigationNavigateAction,