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:
Ben Styles
2018-03-07 19:19:00 +00:00
committed by Ashoat Tevosyan
parent ac83cf804c
commit c9b0219cec

View File

@@ -519,7 +519,7 @@ declare module 'react-navigation' {
declare export type NavigationContainerProps<S: {}, O: {}> = $Shape<{
uriPrefix?: string | RegExp,
onNavigationStateChange?: (
onNavigationStateChange?: ?(
NavigationState,
NavigationState,
NavigationAction