Allow null values to be passed to navigation.goBack()

This commit is contained in:
Andrew Linfoot 2017-06-15 18:30:20 -07:00 committed by GitHub
parent 3032f7725e
commit 2d9acea80a

View File

@ -360,7 +360,7 @@ export interface NavigationProp<S, A> {
}
export type NavigationScreenProp<S, A> = NavigationProp<S, A> & {
goBack: (routeKey?: string) => boolean,
goBack: (routeKey?: string | null) => boolean,
navigate: (routeName: string, params?: NavigationParams, action?: NavigationAction) => boolean,
setParams: (newParams: NavigationParams) => boolean,
}