mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
Fix missing NavigationActions.replace flow type (#4190)
This commit is contained in:
committed by
Ashoat Tevosyan
parent
b065b31bb2
commit
66486cecad
12
flow/react-navigation.js
vendored
12
flow/react-navigation.js
vendored
@@ -722,6 +722,7 @@ declare module 'react-navigation' {
|
||||
INIT: 'Navigation/INIT',
|
||||
NAVIGATE: 'Navigation/NAVIGATE',
|
||||
RESET: 'Navigation/RESET',
|
||||
REPLACE = 'Navigation/REPLACE',
|
||||
SET_PARAMS: 'Navigation/SET_PARAMS',
|
||||
URI: 'Navigation/URI',
|
||||
back: {
|
||||
@@ -748,6 +749,17 @@ declare module 'react-navigation' {
|
||||
}): NavigationResetAction,
|
||||
toString: () => string,
|
||||
},
|
||||
replace: {
|
||||
(payload: {
|
||||
routeName: string,
|
||||
key: string,
|
||||
newKey?: ?string,
|
||||
params?: ?NavigationParams,
|
||||
action?: ?NavigationNavigateAction,
|
||||
immediate?: ?boolean,
|
||||
}): NavigationReplaceAction,
|
||||
toString: () => string,
|
||||
},
|
||||
setParams: {
|
||||
(payload: {
|
||||
key: string,
|
||||
|
||||
Reference in New Issue
Block a user