Files
otunes/patches/expo-router@58.0.25.patch
T
joshuafhigginsandClaude Opus 5.5 Verified 9f59049985 fix(mobile): keep the playlist search bar hidden after a zoom transition
expo-router mounts LinkZoomTransitionEnabler as the screen's first child on
zoom navigations, which hides the FlatList from react-native-screens'
first-descendant scroll view lookup. Patch it to render after the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:30:24 -05:00

28 lines
1.8 KiB
Diff

diff --git a/build/useScreens.js b/build/useScreens.js
index fec20121290650f18f39bc18cbb9e4a2a1626133..31c32ff23b36c43f1e98c58fdd7c1727c8a839df 100644
--- a/build/useScreens.js
+++ b/build/useScreens.js
@@ -364,9 +364,6 @@ function getQualifiedRouteComponent(value) {
/*#__PURE__*/ (0, _jsxruntime().jsxs)(_zoomtransitioncontextproviders.ZoomTransitionTargetContextProvider, {
route: route,
children: [
- /*#__PURE__*/ (0, _jsxruntime().jsx)(_ZoomTransitionEnabler.ZoomTransitionEnabler, {
- route: route
- }),
/*#__PURE__*/ (0, _jsxruntime().jsx)(_react().default.Suspense, {
name: route ? `Route(${route.name})` : undefined,
fallback: // `ResolvedSuspenseFallback` only selects between statically defined
@@ -380,6 +377,12 @@ function getQualifiedRouteComponent(value) {
hideWhenNestedAtLevel: activityThreshold,
children: screenContent
}) : screenContent
+ }),
+ // Render the enabler after the screen content so the screen's scroll
+ // view stays its first descendant. react-native-screens only wires the
+ // header search bar and content insets to the first descendant chain.
+ /*#__PURE__*/ (0, _jsxruntime().jsx)(_ZoomTransitionEnabler.ZoomTransitionEnabler, {
+ route: route
})
]
})