mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Allow null values to be passed to navigation.goBack()
This commit is contained in:
parent
3032f7725e
commit
2d9acea80a
2
types/react-navigation/index.d.ts
vendored
2
types/react-navigation/index.d.ts
vendored
@ -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,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user