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

@@ -0,0 +1,23 @@
// Metro module 8065 (f8066).
import { memo, useRef, useEffect } from "react";
import { StyleSheet } from "react-native";
import { useAPNGPlayerControls, APNGPlayer } from "../../../image/native/APNGPlayer.android";
import { calculateProfileEffectHeight } from "./ProfileEffectUtils";
const r22 = memo(function({ layerConfig, animate, paused, width, accessibilityLabel, onLoad }) {
const ref = useRef(null);
const aPNGPlayerControls = useAPNGPlayerControls(ref);
useEffect(() => {
if (animate && !paused) {
aPNGPlayerControls.play();
} else {
aPNGPlayerControls.pause();
}
}, [animate, paused, aPNGPlayerControls]);
return <APNGPlayer ref={ref} url={layerConfig.src} autoplay={false} style={[StyleSheet.absoluteFill, {
position: "absolute",
width,
height: calculateProfileEffectHeight(layerConfig, width),
opacity: animate ? 1 : 0
}]} ariaLabel={accessibilityLabel} onLoad={onLoad} />;
});
export default r22;