mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
Allow passing null to onNavigationStateChange prop (#3683)
As seen here: react-navigation/react-navigation#360, we need to be able to pass null to turn off logging.
This commit is contained in:
committed by
Ashoat Tevosyan
parent
ac83cf804c
commit
c9b0219cec
2
flow/react-navigation.js
vendored
2
flow/react-navigation.js
vendored
@@ -519,7 +519,7 @@ declare module 'react-navigation' {
|
||||
|
||||
declare export type NavigationContainerProps<S: {}, O: {}> = $Shape<{
|
||||
uriPrefix?: string | RegExp,
|
||||
onNavigationStateChange?: (
|
||||
onNavigationStateChange?: ?(
|
||||
NavigationState,
|
||||
NavigationState,
|
||||
NavigationAction
|
||||
|
||||
Reference in New Issue
Block a user