@william-callao/antonella-ui 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10400,8 +10400,8 @@ function AppLayout({
|
|
|
10400
10400
|
const enteringFullBottom = contentFadeEnabled && !isFullBottomLayout(prevLayoutState) && isFullBottomLayout(state);
|
|
10401
10401
|
const leavingOnlyCenter = contentFadeEnabled && isOnlyCenterLayout(prevLayoutState) && !isOnlyCenterLayout(state);
|
|
10402
10402
|
const enteringOnlyCenter = contentFadeEnabled && !isOnlyCenterLayout(prevLayoutState) && isOnlyCenterLayout(state);
|
|
10403
|
-
const skipContentFadeOut = leavingFullBottom || leavingOnlyCenter;
|
|
10404
10403
|
const goingBack = navigationDirectionRef.current === "back";
|
|
10404
|
+
const skipContentFadeOut = leavingFullBottom || leavingOnlyCenter || goingBack;
|
|
10405
10405
|
const contentFadeOutMs = goingBack ? CONTENT_FADE_OUT_BACK_MS : CONTENT_FADE_OUT_MS;
|
|
10406
10406
|
const contentFadeInMs = goingBack ? CONTENT_FADE_IN_BACK_MS : CONTENT_FADE_IN_MS;
|
|
10407
10407
|
if (contentFadeEnabled) {
|
|
@@ -10598,7 +10598,7 @@ function AppLayout({
|
|
|
10598
10598
|
const cur = state.sections[k];
|
|
10599
10599
|
const prevB = prevLayoutState?.sections[k];
|
|
10600
10600
|
const prevVisible = !!prevB?.visible;
|
|
10601
|
-
if (!cur?.visible && !prevVisible) return null;
|
|
10601
|
+
if (!cur?.visible && (!prevVisible || goingBack)) return null;
|
|
10602
10602
|
const usePrevContent = !cur?.visible && prevVisible;
|
|
10603
10603
|
const behavior = usePrevContent ? prevB : cur;
|
|
10604
10604
|
const slot = behavior?.slot;
|
|
@@ -10619,7 +10619,7 @@ function AppLayout({
|
|
|
10619
10619
|
) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_native87.View, { style: styles79.sectionContent, children: content });
|
|
10620
10620
|
const hidePreviousBody = enteringFullBottom && k === "bottom";
|
|
10621
10621
|
const skipPreviousCenter = enteringOnlyCenter && k === "mid";
|
|
10622
|
-
const previousSlot = contentFadeEnabled && !skipContentFadeOut && !skipPreviousCenter && !hidePreviousBody && !usePrevContent ? prevB?.slot : void 0;
|
|
10622
|
+
const previousSlot = contentFadeEnabled && !skipContentFadeOut && !goingBack && !skipPreviousCenter && !hidePreviousBody && !usePrevContent ? prevB?.slot : void 0;
|
|
10623
10623
|
const previousContent = previousSlot ? prevRoute?.slots?.[previousSlot] : null;
|
|
10624
10624
|
const currentLayer = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
10625
10625
|
import_react_native_reanimated17.default.View,
|