Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3520245
D5404.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
12 KB
Referenced Files
None
Subscribers
None
D5404.diff
View Options
diff --git a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js
--- a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js
+++ b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js
@@ -1940,23 +1940,25 @@
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
- declare export type InexactDrawerNavigationProp<
+ declare type DrawerExtraNavigationHelpers<
+ ParamList: ParamListBase = ParamListBase,
+ > = {|
+ +jumpTo: SimpleNavigate<ParamList>,
+ +openDrawer: () => void,
+ +closeDrawer: () => void,
+ +toggleDrawer: () => void,
+ |};
+
+ declare export type DrawerNavigationHelpers<
ParamList: ParamListBase = ParamListBase,
- RouteName: $Keys<ParamList> = $Keys<ParamList>,
- Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
- ...$Exact<NavigationProp<
+ ...$Exact<NavigationHelpers<
ParamList,
- RouteName,
DrawerNavigationState,
- Options,
EventMap,
>>,
- +jumpTo: SimpleNavigate<ParamList>,
- +openDrawer: () => void,
- +closeDrawer: () => void,
- +toggleDrawer: () => void,
+ ...DrawerExtraNavigationHelpers<ParamList>,
...
};
@@ -1965,19 +1967,23 @@
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
- > = $Exact<InexactDrawerNavigationProp<
- ParamList,
- RouteName,
- Options,
- EventMap,
- >>;
+ > = {|
+ ...$Exact<NavigationProp<
+ ParamList,
+ RouteName,
+ DrawerNavigationState,
+ Options,
+ EventMap,
+ >>,
+ ...DrawerExtraNavigationHelpers<ParamList>,
+ |};
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
- DrawerNavigationProp<>,
+ DrawerNavigationHelpers<>,
DrawerOptions,
>;
@@ -1998,7 +2004,7 @@
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
- +navigation: DrawerNavigationProp<>,
+ +navigation: DrawerNavigationHelpers<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
@@ -2033,10 +2039,10 @@
|};
declare export type DrawerNavigatorProps<
- NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
+ NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>,
> = {|
...ExtraDrawerNavigatorProps,
- ...ScreenOptionsProp<DrawerOptions, NavProp>,
+ ...ScreenOptionsProp<DrawerOptions, NavHelpers>,
|};
/**
diff --git a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js
--- a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js
+++ b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js
@@ -1940,23 +1940,25 @@
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
- declare export type InexactDrawerNavigationProp<
+ declare type DrawerExtraNavigationHelpers<
+ ParamList: ParamListBase = ParamListBase,
+ > = {|
+ +jumpTo: SimpleNavigate<ParamList>,
+ +openDrawer: () => void,
+ +closeDrawer: () => void,
+ +toggleDrawer: () => void,
+ |};
+
+ declare export type DrawerNavigationHelpers<
ParamList: ParamListBase = ParamListBase,
- RouteName: $Keys<ParamList> = $Keys<ParamList>,
- Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
- ...$Exact<NavigationProp<
+ ...$Exact<NavigationHelpers<
ParamList,
- RouteName,
DrawerNavigationState,
- Options,
EventMap,
>>,
- +jumpTo: SimpleNavigate<ParamList>,
- +openDrawer: () => void,
- +closeDrawer: () => void,
- +toggleDrawer: () => void,
+ ...DrawerExtraNavigationHelpers<ParamList>,
...
};
@@ -1965,19 +1967,23 @@
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
- > = $Exact<InexactDrawerNavigationProp<
- ParamList,
- RouteName,
- Options,
- EventMap,
- >>;
+ > = {|
+ ...$Exact<NavigationProp<
+ ParamList,
+ RouteName,
+ DrawerNavigationState,
+ Options,
+ EventMap,
+ >>,
+ ...DrawerExtraNavigationHelpers<ParamList>,
+ |};
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
- DrawerNavigationProp<>,
+ DrawerNavigationHelpers<>,
DrawerOptions,
>;
@@ -1998,7 +2004,7 @@
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
- +navigation: DrawerNavigationProp<>,
+ +navigation: DrawerNavigationHelpers<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
@@ -2033,10 +2039,10 @@
|};
declare export type DrawerNavigatorProps<
- NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
+ NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>,
> = {|
...ExtraDrawerNavigatorProps,
- ...ScreenOptionsProp<DrawerOptions, NavProp>,
+ ...ScreenOptionsProp<DrawerOptions, NavHelpers>,
|};
/**
diff --git a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js
--- a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js
+++ b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js
@@ -1940,23 +1940,25 @@
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
- declare export type InexactDrawerNavigationProp<
+ declare type DrawerExtraNavigationHelpers<
+ ParamList: ParamListBase = ParamListBase,
+ > = {|
+ +jumpTo: SimpleNavigate<ParamList>,
+ +openDrawer: () => void,
+ +closeDrawer: () => void,
+ +toggleDrawer: () => void,
+ |};
+
+ declare export type DrawerNavigationHelpers<
ParamList: ParamListBase = ParamListBase,
- RouteName: $Keys<ParamList> = $Keys<ParamList>,
- Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
- ...$Exact<NavigationProp<
+ ...$Exact<NavigationHelpers<
ParamList,
- RouteName,
DrawerNavigationState,
- Options,
EventMap,
>>,
- +jumpTo: SimpleNavigate<ParamList>,
- +openDrawer: () => void,
- +closeDrawer: () => void,
- +toggleDrawer: () => void,
+ ...DrawerExtraNavigationHelpers<ParamList>,
...
};
@@ -1965,19 +1967,23 @@
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
- > = $Exact<InexactDrawerNavigationProp<
- ParamList,
- RouteName,
- Options,
- EventMap,
- >>;
+ > = {|
+ ...$Exact<NavigationProp<
+ ParamList,
+ RouteName,
+ DrawerNavigationState,
+ Options,
+ EventMap,
+ >>,
+ ...DrawerExtraNavigationHelpers<ParamList>,
+ |};
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
- DrawerNavigationProp<>,
+ DrawerNavigationHelpers<>,
DrawerOptions,
>;
@@ -1998,7 +2004,7 @@
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
- +navigation: DrawerNavigationProp<>,
+ +navigation: DrawerNavigationHelpers<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
@@ -2033,10 +2039,10 @@
|};
declare export type DrawerNavigatorProps<
- NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
+ NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>,
> = {|
...ExtraDrawerNavigatorProps,
- ...ScreenOptionsProp<DrawerOptions, NavProp>,
+ ...ScreenOptionsProp<DrawerOptions, NavHelpers>,
|};
/**
diff --git a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js
--- a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js
+++ b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js
@@ -1940,23 +1940,25 @@
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
- declare export type InexactDrawerNavigationProp<
+ declare type DrawerExtraNavigationHelpers<
+ ParamList: ParamListBase = ParamListBase,
+ > = {|
+ +jumpTo: SimpleNavigate<ParamList>,
+ +openDrawer: () => void,
+ +closeDrawer: () => void,
+ +toggleDrawer: () => void,
+ |};
+
+ declare export type DrawerNavigationHelpers<
ParamList: ParamListBase = ParamListBase,
- RouteName: $Keys<ParamList> = $Keys<ParamList>,
- Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
- ...$Exact<NavigationProp<
+ ...$Exact<NavigationHelpers<
ParamList,
- RouteName,
DrawerNavigationState,
- Options,
EventMap,
>>,
- +jumpTo: SimpleNavigate<ParamList>,
- +openDrawer: () => void,
- +closeDrawer: () => void,
- +toggleDrawer: () => void,
+ ...DrawerExtraNavigationHelpers<ParamList>,
...
};
@@ -1965,19 +1967,23 @@
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
- > = $Exact<InexactDrawerNavigationProp<
- ParamList,
- RouteName,
- Options,
- EventMap,
- >>;
+ > = {|
+ ...$Exact<NavigationProp<
+ ParamList,
+ RouteName,
+ DrawerNavigationState,
+ Options,
+ EventMap,
+ >>,
+ ...DrawerExtraNavigationHelpers<ParamList>,
+ |};
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
- DrawerNavigationProp<>,
+ DrawerNavigationHelpers<>,
DrawerOptions,
>;
@@ -1998,7 +2004,7 @@
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
- +navigation: DrawerNavigationProp<>,
+ +navigation: DrawerNavigationHelpers<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
@@ -2033,10 +2039,10 @@
|};
declare export type DrawerNavigatorProps<
- NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
+ NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>,
> = {|
...ExtraDrawerNavigatorProps,
- ...ScreenOptionsProp<DrawerOptions, NavProp>,
+ ...ScreenOptionsProp<DrawerOptions, NavHelpers>,
|};
/**
diff --git a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js
--- a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js
+++ b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js
@@ -1940,23 +1940,25 @@
+drawerClose: {| +data: void, +canPreventDefault: false |},
|};
- declare export type InexactDrawerNavigationProp<
+ declare type DrawerExtraNavigationHelpers<
+ ParamList: ParamListBase = ParamListBase,
+ > = {|
+ +jumpTo: SimpleNavigate<ParamList>,
+ +openDrawer: () => void,
+ +closeDrawer: () => void,
+ +toggleDrawer: () => void,
+ |};
+
+ declare export type DrawerNavigationHelpers<
ParamList: ParamListBase = ParamListBase,
- RouteName: $Keys<ParamList> = $Keys<ParamList>,
- Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
> = {
- ...$Exact<NavigationProp<
+ ...$Exact<NavigationHelpers<
ParamList,
- RouteName,
DrawerNavigationState,
- Options,
EventMap,
>>,
- +jumpTo: SimpleNavigate<ParamList>,
- +openDrawer: () => void,
- +closeDrawer: () => void,
- +toggleDrawer: () => void,
+ ...DrawerExtraNavigationHelpers<ParamList>,
...
};
@@ -1965,19 +1967,23 @@
RouteName: $Keys<ParamList> = $Keys<ParamList>,
Options: {...} = DrawerOptions,
EventMap: EventMapBase = DrawerNavigationEventMap,
- > = $Exact<InexactDrawerNavigationProp<
- ParamList,
- RouteName,
- Options,
- EventMap,
- >>;
+ > = {|
+ ...$Exact<NavigationProp<
+ ParamList,
+ RouteName,
+ DrawerNavigationState,
+ Options,
+ EventMap,
+ >>,
+ ...DrawerExtraNavigationHelpers<ParamList>,
+ |};
/**
* Miscellaneous drawer exports
*/
declare export type DrawerDescriptor = Descriptor<
- DrawerNavigationProp<>,
+ DrawerNavigationHelpers<>,
DrawerOptions,
>;
@@ -1998,7 +2004,7 @@
declare type DrawerNavigationBuilderResult = {|
+state: DrawerNavigationState,
- +navigation: DrawerNavigationProp<>,
+ +navigation: DrawerNavigationHelpers<>,
+descriptors: {| +[key: string]: DrawerDescriptor |},
|};
@@ -2033,10 +2039,10 @@
|};
declare export type DrawerNavigatorProps<
- NavProp: InexactDrawerNavigationProp<> = DrawerNavigationProp<>,
+ NavHelpers: DrawerNavigationHelpers<> = DrawerNavigationHelpers<>,
> = {|
...ExtraDrawerNavigatorProps,
- ...ScreenOptionsProp<DrawerOptions, NavProp>,
+ ...ScreenOptionsProp<DrawerOptions, NavHelpers>,
|};
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 11:42 PM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2697399
Default Alt Text
D5404.diff (12 KB)
Attached To
Mode
D5404: [native] [11/34] ReactNav6: separate DrawerNavigationProp from DrawerNavigationHelpers
Attached
Detach File
Event Timeline
Log In to Comment