Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3520366
D5416.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D5416.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
@@ -1382,6 +1382,7 @@
+gestureVelocityImpact: number,
+safeAreaInsets: $Partial<EdgeInsets>,
+keyboardHandlingEnabled: boolean,
+ +presentation: 'card' | 'modal' | 'transparentModal',
// Transition
...TransitionPreset,
// Header
@@ -1470,7 +1471,6 @@
*/
declare type StackNavigationConfig = {|
- +mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+detachInactiveScreens?: boolean,
|};
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
@@ -1382,6 +1382,7 @@
+gestureVelocityImpact: number,
+safeAreaInsets: $Partial<EdgeInsets>,
+keyboardHandlingEnabled: boolean,
+ +presentation: 'card' | 'modal' | 'transparentModal',
// Transition
...TransitionPreset,
// Header
@@ -1470,7 +1471,6 @@
*/
declare type StackNavigationConfig = {|
- +mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+detachInactiveScreens?: boolean,
|};
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
@@ -1382,6 +1382,7 @@
+gestureVelocityImpact: number,
+safeAreaInsets: $Partial<EdgeInsets>,
+keyboardHandlingEnabled: boolean,
+ +presentation: 'card' | 'modal' | 'transparentModal',
// Transition
...TransitionPreset,
// Header
@@ -1470,7 +1471,6 @@
*/
declare type StackNavigationConfig = {|
- +mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+detachInactiveScreens?: boolean,
|};
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
@@ -1382,6 +1382,7 @@
+gestureVelocityImpact: number,
+safeAreaInsets: $Partial<EdgeInsets>,
+keyboardHandlingEnabled: boolean,
+ +presentation: 'card' | 'modal' | 'transparentModal',
// Transition
...TransitionPreset,
// Header
@@ -1470,7 +1471,6 @@
*/
declare type StackNavigationConfig = {|
- +mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+detachInactiveScreens?: boolean,
|};
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
@@ -1382,6 +1382,7 @@
+gestureVelocityImpact: number,
+safeAreaInsets: $Partial<EdgeInsets>,
+keyboardHandlingEnabled: boolean,
+ +presentation: 'card' | 'modal' | 'transparentModal',
// Transition
...TransitionPreset,
// Header
@@ -1470,7 +1471,6 @@
*/
declare type StackNavigationConfig = {|
- +mode?: 'card' | 'modal',
+headerMode?: 'float' | 'screen' | 'none',
+detachInactiveScreens?: boolean,
|};
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
@@ -140,8 +140,9 @@
const defaultScreenOptions = {
...defaultStackScreenOptions,
- cardStyle: { backgroundColor: 'transparent' },
...transitionPreset,
+ cardStyle: { backgroundColor: 'transparent' },
+ presentation: 'modal',
};
const disableGesturesScreenOptions = {
gestureEnabled: false,
@@ -172,11 +173,7 @@
>();
function RootComponent(): React.Node {
return (
- <Root.Navigator
- mode="modal"
- headerMode="none"
- screenOptions={defaultScreenOptions}
- >
+ <Root.Navigator headerMode="none" screenOptions={defaultScreenOptions}>
<Root.Screen
name={LoggedOutModalRouteName}
component={LoggedOutModal}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 12:10 AM (19 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2697474
Default Alt Text
D5416.diff (4 KB)
Attached To
Mode
D5416: [native] [23/34] ReactNav6: Replace mode="modal" with presentation: 'modal'
Attached
Detach File
Event Timeline
Log In to Comment