Skip to content

Commit

Permalink
fix: fix the type of NavigationJumpToActionPayload (#6210)
Browse files Browse the repository at this point in the history
As mentioned in https://reactnavigation.org/docs/en/switch-actions.html
the param which's name is 'key' of `SwitchActions.jumpTo()`  should be optional
  • Loading branch information
nicholaslee119 authored and satya164 committed Sep 16, 2019
1 parent 3aee211 commit 2b27bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/react-navigation.d.ts
Expand Up @@ -345,7 +345,7 @@ declare module 'react-navigation' {

export interface NavigationJumpToActionPayload {
routeName: string;
key: string;
key?: string;
params?: NavigationParams;
}

Expand Down

0 comments on commit 2b27bcd

Please sign in to comment.