Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong type in react-navigation.d.ts (#6486)
This code is actually throwing a type error because of a wrong type declaration with the action expecting to be only a `NavigationNavigateAction` while in reality any action can be dispatched not only the `navigate`. ```jsx StackActions.replace({ routeName: 'MyRoute1', // this action is throwing a type error action: StackActions.push({ routeName: 'MyRoute2', }), }), ```
- Loading branch information