Page MenuHomePhabricator

D5413.diff
No OneTemporary

D5413.diff

diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js
--- a/native/chat/chat.react.js
+++ b/native/chat/chat.react.js
@@ -144,6 +144,7 @@
initialRouteName,
children,
screenOptions,
+ defaultScreenOptions,
screenListeners,
id,
...rest
@@ -153,6 +154,7 @@
initialRouteName,
children,
screenOptions,
+ defaultScreenOptions,
screenListeners,
});
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
@@ -1098,6 +1098,13 @@
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProps<ScreenOptions, RouteParam, NavHelpers>,
...ScreenListenersProps<ScreenListenersParam, RouteParam, NavHelpers>,
+ +defaultScreenOptions?:
+ | ScreenOptions
+ | ({|
+ +route: RouteParam,
+ +navigation: NavHelpers,
+ +options: ScreenOptions,
+ |}) => ScreenOptions,
...
};
declare export type NavigatorPropsBase<
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
@@ -1098,6 +1098,13 @@
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProps<ScreenOptions, RouteParam, NavHelpers>,
...ScreenListenersProps<ScreenListenersParam, RouteParam, NavHelpers>,
+ +defaultScreenOptions?:
+ | ScreenOptions
+ | ({|
+ +route: RouteParam,
+ +navigation: NavHelpers,
+ +options: ScreenOptions,
+ |}) => ScreenOptions,
...
};
declare export type NavigatorPropsBase<
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
@@ -1098,6 +1098,13 @@
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProps<ScreenOptions, RouteParam, NavHelpers>,
...ScreenListenersProps<ScreenListenersParam, RouteParam, NavHelpers>,
+ +defaultScreenOptions?:
+ | ScreenOptions
+ | ({|
+ +route: RouteParam,
+ +navigation: NavHelpers,
+ +options: ScreenOptions,
+ |}) => ScreenOptions,
...
};
declare export type NavigatorPropsBase<
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
@@ -1098,6 +1098,13 @@
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProps<ScreenOptions, RouteParam, NavHelpers>,
...ScreenListenersProps<ScreenListenersParam, RouteParam, NavHelpers>,
+ +defaultScreenOptions?:
+ | ScreenOptions
+ | ({|
+ +route: RouteParam,
+ +navigation: NavHelpers,
+ +options: ScreenOptions,
+ |}) => ScreenOptions,
...
};
declare export type NavigatorPropsBase<
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
@@ -1098,6 +1098,13 @@
...$Exact<ExtraNavigatorProps>,
...ScreenOptionsProps<ScreenOptions, RouteParam, NavHelpers>,
...ScreenListenersProps<ScreenListenersParam, RouteParam, NavHelpers>,
+ +defaultScreenOptions?:
+ | ScreenOptions
+ | ({|
+ +route: RouteParam,
+ +navigation: NavHelpers,
+ +options: ScreenOptions,
+ |}) => ScreenOptions,
...
};
declare export type NavigatorPropsBase<
diff --git a/native/navigation/root-navigator.react.js b/native/navigation/root-navigator.react.js
--- a/native/navigation/root-navigator.react.js
+++ b/native/navigation/root-navigator.react.js
@@ -58,6 +58,7 @@
initialRouteName,
children,
screenOptions,
+ defaultScreenOptions,
screenListeners,
id,
...rest
@@ -67,6 +68,7 @@
initialRouteName,
children,
screenOptions,
+ defaultScreenOptions,
screenListeners,
});

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 6:22 AM (7 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2845960
Default Alt Text
D5413.diff (4 KB)

Event Timeline