2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 1590
|
|
|
|
|
// Function ID: 1591
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCurrentRender
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [19, 1549]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: useCurrentRender
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 1590 (useCurrentRender)
|
2026-08-24 06:08:38 +00:00
|
|
|
import CurrentRenderContext from "CurrentRenderContext" /* 1549 */;
|
|
|
|
|
import closure_2 from "noop" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
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
|
|
|
({ state, navigation } = arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
const context = React.useContext(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;
|
|
|
|
|
}
|
|
|
|
|
};
|