This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,16 @@
// Metro module 11302 (f11303).
import { useState, useEffect } from "react";
import { useAppLauncherNavigation } from "../AppLauncherNativeConstants";
import { useRoute } from "../../../../_bundle/Module1481";
export default function useNavigationTransitionEnded() {
const [state, setState] = useState(false);
const appLauncherNavigation = useAppLauncherNavigation();
const route = useRoute();
useEffect(() => appLauncherNavigation.addListener("transitionEnd", () => {
const state = appLauncherNavigation.getState();
if (state.routes[state.index].key === route.key) {
setState(true);
}
}), [appLauncherNavigation, route, setState]);
return state;
};