Skip to content
TypeScript

fix(mobile): deliver the first tab selection after Duo folding (#22979)

Julius Marminge61bdec0c9955
diff --git a/apps/mobile/deps/react-native-screens-5.0.0-t3.30.tgz b/apps/mobile/deps/react-native-screens-5.0.0-t3.30.tgz
deleted file mode 100644
index 581307cf91b..00000000000
Binary files a/apps/mobile/deps/react-native-screens-5.0.0-t3.30.tgz and /dev/null differ
diff --git a/apps/mobile/deps/react-native-screens-5.0.0-t3.31.tgz b/apps/mobile/deps/react-native-screens-5.0.0-t3.31.tgz
new file mode 100644
index 00000000000..cdfcbbd90d2
Binary files /dev/null and b/apps/mobile/deps/react-native-screens-5.0.0-t3.31.tgz differ
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 441ee7beb6d..44a19af3378 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -134,7 +134,7 @@
"react-native-pdf-jsi": "5.0.0",
"react-native-reanimated": "4.7.1",
"react-native-safe-area-context": "~5.10.1",
- "react-native-screens": "file:deps/react-native-screens-5.0.0-t3.30.tgz",
+ "react-native-screens": "file:deps/react-native-screens-5.0.0-t3.31.tgz",
"react-native-shiki-engine": "^0.3.12",
"react-native-svg": "15.16.0",
"react-native-webview": "14.0.1",
diff --git a/docs/operations/mobile-screens-fork.md b/docs/operations/mobile-screens-fork.md
index cd21aa55137..614aa4280cb 100644
--- a/docs/operations/mobile-screens-fork.md
+++ b/docs/operations/mobile-screens-fork.md
@@ -1,7 +1,7 @@
# Building the mobile Screens dependency
The mobile v5 stack uses a committed tarball from the
-[T3 Screens fork](https://github.com/pingdotgg/react-native-screens/tree/t3-v5.0.0-t3.30).
+[T3 Screens fork](https://github.com/pingdotgg/react-native-screens/tree/t3-v5.0.0-t3.31).
The fork owns the integration changes; the app does not patch this package.
Each archive includes compiled JavaScript, declarations, native source and
`t3-fork.json` recording its version, source commit and upstream base.
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 00000000000..0906f99b9d0
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,15 @@
+diff --git a/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h b/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h
+index 675b1b7..dea79ba 100644
+--- a/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h
++++ b/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h
+@@ -247,7 +247,9 @@ static inline bool isRNSScreenOrStack(const std::shared_ptr<LightNode> &node) {
+ const auto componentName = node->current.componentName;
+ react_native_assert(componentName && "Component name is nullptr");
+ return !std::strcmp(componentName, "RNSScreenStack") || !std::strcmp(componentName, "RNSScreen") ||
+- !std::strcmp(componentName, "RNSModalScreen");
++ !std::strcmp(componentName, "RNSModalScreen") || !std::strcmp(componentName, "RNSStackScreen") ||
++ !std::strcmp(componentName, "RNSSplitScreen") || !std::strcmp(componentName, "RNSTabsScreenIOS") ||
++ !std::strcmp(componentName, "RNSTabsScreenAndroid");
+ }
+
+ static inline bool isRNSScreen(const std::shared_ptr<LightNode> &node) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fa96b326cc4..aa6842a9c8b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -354,6 +354,7 @@ patchedDependencies:
[email protected]: 419f35ee91eac88ced9438058281db5eb09d9c799d8974c1172926068c9448cf
[email protected]: f28d08f1233e3cce8b9324b4357d2b10f1ee040b8051bc87235b0fb95069b9bb
[email protected]: 6f52854210f61bef499850ebd498229a111bc34ec5b2a4925e644f2f48f42760
+ [email protected]: 95ee26e5fcab5f50bc4b4c47b3f7e6278a0b20850205efb9f6ee7e70a22d2b59
[email protected]: 81caa279ec3dc1f81209062133b66e8f824e13f106cca57f1fa732a72c2ab378
importers:
@@ -541,7 +542,7 @@ importers:
'@react-navigation/native-stack':
specifier: 7.21.0
- version: 7.21.0(patch_hash=caae6552051bce91a85f567f3a08f9c8d25ce4c53f65a9391a67f016bb1d798e)(1ce92c52c0c48e16a6deb7b7b0829a25)
+ version: 7.21.0(patch_hash=caae6552051bce91a85f567f3a08f9c8d25ce4c53f65a9391a67f016bb1d798e)(45e036a3bd680d99803578d5030f7a06)
'@shikijs/core':
specifier: 4.2.0
version: 4.2.0
@@ -739,7 +740,7 @@ importers:
react-native-keyboard-controller:
specifier: 1.22.7
- version: 1.22.7(patch_hash=f28d08f1233e3cce8b9324b4357d2b10f1ee040b8051bc87235b0fb95069b9bb)(312dd38e5b3f33a4cd42485c56107a1a)
+ version: 1.22.7(patch_hash=f28d08f1233e3cce8b9324b4357d2b10f1ee040b8051bc87235b0fb95069b9bb)(e2a826d844fe10cdcbda558127861778)
react-native-nitro-modules:
specifier: 0.37.1
@@ -748,13 +749,13 @@ importers:
version: 5.0.0(patch_hash=6f52854210f61bef499850ebd498229a111bc34ec5b2a4925e644f2f48f42760)(ddae2ea06f4d260467f86a139b5aa8e9)
react-native-reanimated:
specifier: 4.7.1
react-native-safe-area-context:
specifier: ~5.10.1
react-native-screens:
- specifier: file:deps/react-native-screens-5.0.0-t3.30.tgz
+ specifier: file:deps/react-native-screens-5.0.0-t3.31.tgz
react-native-shiki-engine:
specifier: ^0.3.12
@@ -10902,9 +10903,9 @@ packages:
react: '*'
react-native: '*'
- react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.30.tgz:
- resolution: {integrity: sha512-Szxvbp1mt4KwJ6cLoirkLQ2kz7Ebia3fTYPTjTifwqw3djskueHmML1np+wSZEs3Y0NtZf681SG/8xN5iW3T5Q==, tarball: file:apps/mobile/deps/react-native-screens-5.0.0-t3.30.tgz}
- version: 5.0.0-t3.30
+ react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.31.tgz:
+ resolution: {integrity: sha512-sz2DmEXcI1rhsPXm6MQsBNWlTT+sUp1x4pEwZWRlFY9UqUsn7J41M4xGlnrmSmN3ZiMZQyPxd55843EJzQ63nQ==, tarball: file:apps/mobile/deps/react-native-screens-5.0.0-t3.31.tgz}
+ version: 5.0.0-t3.31
peerDependencies:
react: '*'
react-native: '*'
@@ -15966,7 +15967,7 @@ snapshots:
optionalDependencies:
- '@react-navigation/[email protected](patch_hash=caae6552051bce91a85f567f3a08f9c8d25ce4c53f65a9391a67f016bb1d798e)(1ce92c52c0c48e16a6deb7b7b0829a25)':
+ '@react-navigation/[email protected](patch_hash=caae6552051bce91a85f567f3a08f9c8d25ce4c53f65a9391a67f016bb1d798e)(45e036a3bd680d99803578d5030f7a06)':
dependencies:
'@react-navigation/elements': 2.9.45(d8845bac868f4d8a58c8a8f12ad0d4a5)
@@ -15974,7 +15975,7 @@ snapshots:
react: 19.3.0
sf-symbols-typescript: 2.2.0
warn-once: 0.1.1
transitivePeerDependencies:
@@ -21544,12 +21545,12 @@ snapshots:
react: 19.3.0
- [email protected](patch_hash=f28d08f1233e3cce8b9324b4357d2b10f1ee040b8051bc87235b0fb95069b9bb)(312dd38e5b3f33a4cd42485c56107a1a):
+ [email protected](patch_hash=f28d08f1233e3cce8b9324b4357d2b10f1ee040b8051bc87235b0fb95069b9bb)(e2a826d844fe10cdcbda558127861778):
dependencies:
react: 19.3.0
dependencies:
@@ -21566,7 +21567,7 @@ snapshots:
dependencies:
react: 19.3.0
@@ -21579,7 +21580,7 @@ snapshots:
react: 19.3.0
dependencies:
react: 19.3.0
react-freeze: 1.0.4([email protected])
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 2bc5c475932..24afc13b722 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -349,6 +349,9 @@ patchedDependencies:
+ # Screens v5 stack, split and tab screens leave at once, like legacy screens. Exiting animations
+ # inside one otherwise hold its removal for a later mount, after its stack has moved on.
# Android: a nested WebView hands a vertical drag to its scrolling parent at the page's edge.