This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
// Metro module 1748 (f1749).
import { ScrollView } from "react-native";
import { createAnimatedComponent } from "./Module1640";
import { componentWithRef } from "./Module1745";
import { useAnimatedRef, useScrollViewOffset } from "./Module1749";
const _excluded = ["scrollViewOffset"];
const AnimatedComponent = createAnimatedComponent(ScrollView);
export const AnimatedScrollView = componentWithRef((a0, a1) => {
let ref = a1;
const { scrollViewOffset, ...rest } = a0;
if (a1 === null) {
ref = useAnimatedRef();
}
if (scrollViewOffset) {
useScrollViewOffset(ref, scrollViewOffset);
}
if (!("scrollEventThrottle" in rest)) {
rest.scrollEventThrottle = 1;
}
return <AnimatedComponent ref={ref} {...rest} />;
});