Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
37 lines
964 B
JavaScript
37 lines
964 B
JavaScript
// Module ID: 7068
|
|
// Function ID: 7069
|
|
// Dependencies: [7050, 19, 7069]
|
|
// Exports: useLayoutState
|
|
|
|
// Module 7068
|
|
import _mod7069 from "module_7069" /* 7069 */;
|
|
import _slicedToArray from "module_7050" /* 7050 */;
|
|
|
|
require = fn;
|
|
const noop = fn(19);
|
|
({ useState: c3, useCallback: closure_4 } = noop);
|
|
|
|
export const useLayoutState = function useLayoutState(arg0) {
|
|
const tmp = _slicedToArray(React3(arg0), 2);
|
|
closure_0 = tmp[1];
|
|
const recyclerViewContext = _mod7069.useRecyclerViewContext();
|
|
const items = [tmp[0], ];
|
|
const items1 = [recyclerViewContext];
|
|
items[1] = React4((arg0, arg1) => {
|
|
closure_0 = arg0;
|
|
closure_0((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;
|
|
};
|