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>
28 lines
1.8 KiB
Diff
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
|
|
})
|
|
]
|
|
})
|