Merge pull request #17235 from andrewlinfoot/patch-3

Allow null values to be passed to navigation.goBack() react-navigation
This commit is contained in:
Nathan Shively-Sanders
2017-06-19 16:13:24 -07:00
committed by GitHub

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,
}