// Module ID: 1553 // Function ID: 1554 // Name: useFocusEffect // Dependencies: [19, 1523] // Exports: useFocusEffect // Module 1553 (useFocusEffect) import noop from "noop"; const require = arg1; export const useFocusEffect = function useFocusEffect(c5) { const _require = c5; navigation = _require(navigation[1]).useNavigation(); if (undefined !== arguments[1]) { const _console = console; console.error("You passed a second argument to 'useFocusEffect', but it only accepts one argument. If you want to pass a dependency array, you can use 'React.useCallback':\n\nuseFocusEffect(\n React.useCallback(() => {\n // Your code here\n }, [depA, depB])\n);\n\nSee usage guide: https://reactnavigation.org/docs/use-focus-effect"); } const items = [c5, navigation]; const effect = React.useEffect(() => { let navigation = false; if (navigation.isFocused()) { const tmp2 = c5(); if (undefined === tmp2) { let tmp3 = tmp2; } c5 = tmp3; navigation = true; } let noop = obj.addListener("focus", () => { if (!c1) { if (undefined !== tmp3) { tmp3(); } tmp3 = tmp3(); if (undefined === tmp3) { const tmp4 = tmp3; } tmp3 = tmp4; c1 = true; } }); let closure_3 = obj.addListener("blur", () => { if (undefined !== tmp3) { tmp3(); } let c1 = false; }); return () => { if (undefined !== tmp3) { tmp3(); } callback(); tmp3 = callback2(); }; }, items); };