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
parent 81e0ce136e
commit e147f34555

View File

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