mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
fix: add missing isFirstRouteInParent type in typescript and flow (#6019)
This commit is contained in:
committed by
Satyajit Sahoo
parent
14e2df66d5
commit
b05cdcb076
@@ -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]
|
||||
|
||||
|
||||
1
flow/react-navigation.js
vendored
1
flow/react-navigation.js
vendored
@@ -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: (
|
||||
|
||||
1
typescript/react-navigation.d.ts
vendored
1
typescript/react-navigation.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user