decord/source/1615_ReanimatedFlatList.js

74 lines
2.8 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1615
2026-07-24 07:16:23 +00:00
// Function ID: 17920
2026-07-20 16:05:17 +00:00
// Name: ReanimatedFlatList
2026-07-23 10:11:24 +00:00
// Dependencies: [29, 31, 27, 33, 1616, 1722, 1720, 1721]
2026-07-20 16:05:17 +00:00
// Module 1615 (ReanimatedFlatList)
2026-07-23 10:11:24 +00:00
import _objectWithoutProperties from "_objectWithoutProperties";
import result from "result";
import { useRef } from "result";
import { jsx } from "jsxProd";
import createAnimatedComponent from "createAnimatedComponent";
import getCurrentReactOwner from "getCurrentReactOwner";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
let require = arg1;
let closure_2 = ["itemLayoutAnimation", "skipEnteringExitingAnimations", "CellRendererComponentStyle"];
let closure_7 = createAnimatedComponent.createAnimatedComponent(require("get ActivityIndicator").FlatList);
export const ReanimatedFlatList = getCurrentReactOwner.componentWithRef(function FlatListForwardRefRender(skipEnteringExitingAnimations, ref) {
2026-07-20 16:05:17 +00:00
let CellRendererComponentStyle;
let itemLayoutAnimation;
({ itemLayoutAnimation, CellRendererComponentStyle } = skipEnteringExitingAnimations);
const tmp = callback(skipEnteringExitingAnimations, closure_2);
if (!("scrollEventThrottle" in tmp)) {
tmp.scrollEventThrottle = 1;
}
const tmp2 = useRef(itemLayoutAnimation);
2026-07-23 10:11:24 +00:00
const require = tmp2;
2026-07-20 16:05:17 +00:00
tmp2.current = itemLayoutAnimation;
const tmp3 = useRef(CellRendererComponentStyle);
const dependencyMap = tmp3;
tmp3.current = CellRendererComponentStyle;
let obj = { ref };
obj = {
2026-07-23 10:11:24 +00:00
CellRendererComponent: React.useMemo(() => (function createCellRendererComponent(closure_0, closure_1) {
2026-07-20 16:05:17 +00:00
return function CellRendererComponent(onLayout) {
let obj = {};
let current;
2026-07-23 10:11:24 +00:00
if (null != ref) {
current = ref.current;
2026-07-20 16:05:17 +00:00
}
obj.layout = current;
obj.onLayout = onLayout.onLayout;
const items = [onLayout.style, ];
let current1;
2026-07-23 10:11:24 +00:00
if (null != ref2) {
current1 = ref2.current;
2026-07-20 16:05:17 +00:00
}
if ("function" === typeof current1) {
let currentResult;
2026-07-23 10:11:24 +00:00
if (null != ref2) {
2026-07-20 16:05:17 +00:00
obj = {};
({ index: obj2.index, item: obj2.item } = onLayout);
2026-07-23 10:11:24 +00:00
currentResult = ref2.current(obj);
2026-07-20 16:05:17 +00:00
}
current = currentResult;
2026-07-23 10:11:24 +00:00
} else if (null != ref2) {
current = ref2.current;
2026-07-20 16:05:17 +00:00
}
items[1] = current;
obj.style = items;
obj.children = onLayout.children;
2026-07-23 10:11:24 +00:00
return outer3_6(ref(ref2[5]).AnimatedView, obj);
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
})(closure_0, closure_1), [])
2026-07-20 16:05:17 +00:00
};
const tmp4 = <closure_7 {...Object.assign(obj, tmp, obj)} />;
let tmp5 = tmp4;
if (undefined !== skipEnteringExitingAnimations.skipEnteringExitingAnimations) {
2026-07-23 10:11:24 +00:00
obj = { skipEntering: true, skipExiting: true, children: tmp4 };
tmp5 = jsx(require(1720) /* _isNativeReflectConstruct */.LayoutAnimationConfig, { skipEntering: true, skipExiting: true, children: tmp4 });
2026-07-20 16:05:17 +00:00
}
return tmp5;
});