Skip to content

Commit

Permalink
fix: add missing isFirstRouteInParent type in typescript and flow (#6019
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Shchepotin authored and satya164 committed Jun 19, 2019
1 parent 14e2df6 commit b05cdcb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions flow/react-navigation.js
Expand Up @@ -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: (
Expand Down
1 change: 1 addition & 0 deletions typescript/react-navigation.d.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit b05cdcb

Please sign in to comment.