2026-08-11 06:20:06 +00:00
|
|
|
// Module ID: 1589
|
|
|
|
|
// Function ID: 1590
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCurrentRender
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [19, 1548]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: useCurrentRender
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-11 06:20:06 +00:00
|
|
|
// Module 1589 (useCurrentRender)
|
2026-07-29 08:29:29 +00:00
|
|
|
import noop from "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
export const useCurrentRender = function useCurrentRender(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let navigation;
|
|
|
|
|
let state;
|
|
|
|
|
({ state, navigation } = arg0);
|
2026-08-11 06:20:06 +00:00
|
|
|
const context = React.useContext(require(1548) /* CurrentRenderContext */.CurrentRenderContext);
|
2026-07-20 16:05:17 +00:00
|
|
|
let isFocusedResult = context;
|
|
|
|
|
if (context) {
|
|
|
|
|
isFocusedResult = navigation.isFocused();
|
|
|
|
|
}
|
|
|
|
|
if (isFocusedResult) {
|
|
|
|
|
context.options = arg0.descriptors[state.routes[state.index].key].options;
|
|
|
|
|
}
|
|
|
|
|
};
|