Skip to content

Commit 812df28

Browse files
benadamstylessourcecode911
authored andcommitted
Allow passing null to onNavigationStateChange prop (react-navigation#3683)
As seen here: react-navigation#360, we need to be able to pass null to turn off logging.
1 parent 7ecd57e commit 812df28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/react-navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ declare module 'react-navigation' {
519519

520520
declare export type NavigationContainerProps<S: {}, O: {}> = $Shape<{
521521
uriPrefix?: string | RegExp,
522-
onNavigationStateChange?: (
522+
onNavigationStateChange?: ?(
523523
NavigationState,
524524
NavigationState,
525525
NavigationAction

0 commit comments

Comments
 (0)