fix: add missing isFirstRouteInParent type in typescript and flow (#6019)

This commit is contained in:
Vladyslav Shchepotin
2019-06-20 00:05:02 +03:00
committed by Satyajit Sahoo
parent 14e2df66d5
commit b05cdcb076
3 changed files with 3 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Fixes
- Fix `navigationOptions` type from `NavigationScreenProp<NavigationRoute>` to `NavigationScreenConfig<Options>`.
- Fix missing `isFirstRouteInParent` type in typescript and flow.
## [3.11.0]

View File

@@ -616,6 +616,7 @@ declare module 'react-navigation' {
>,
dangerouslyGetParent: () => ?NavigationScreenProp<NavigationState>,
isFocused: () => boolean,
isFirstRouteInParent: () => boolean,
// Shared action creators that exist for all routers
goBack: (routeKey?: ?string) => boolean,
navigate: (

View File

@@ -754,6 +754,7 @@ declare module 'react-navigation' {
pop: (n?: number, params?: { immediate?: boolean }) => boolean;
popToTop: (params?: { immediate?: boolean }) => boolean;
isFocused: () => boolean;
isFirstRouteInParent: () => boolean;
router?: NavigationRouter;
dangerouslyGetParent: () => NavigationScreenProp<S> | undefined;
}