decord/source/5514_useLayoutState.js
2026-08-05 07:35:12 +00:00

39 lines
998 B
JavaScript

// Module ID: 5514
// Function ID: 5515
// Name: useLayoutState
// Dependencies: [5496, 19, 5515]
// Exports: useLayoutState
// Module 5514 (useLayoutState)
import _slicedToArray from "_slicedToArray";
import noop from "noop";
let c3;
let c4;
const require = arg1;
({ useState: c3, useCallback: c4 } = noop);
export const useLayoutState = function useLayoutState(arg0) {
const tmp = callback(callback2(arg0), 2);
const _require = tmp[1];
recyclerViewContext = _require(recyclerViewContext[2]).useRecyclerViewContext();
const items = [tmp[0], ];
const items1 = [recyclerViewContext];
items[1] = callback3((arg0, arg1) => {
const callback = arg0;
callback((arg0) => {
let tmpResult = closure_0;
if (typeof closure_0 === "function") {
tmpResult = tmp(arg0);
}
return tmpResult;
});
if (!arg1) {
if (recyclerViewContext != null) {
obj.layout();
}
obj = recyclerViewContext;
}
}, items1);
return items;
};