2026-10-12 06:59:38 +00:00
|
|
|
// Module ID: 6106
|
|
|
|
|
// Function ID: 6107
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: LottieAnimationView
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [109, 19, 17, 21, 6107, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-12 06:59:38 +00:00
|
|
|
// Module 6106 (LottieAnimationView)
|
2026-10-03 08:58:59 +00:00
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import LottieViewDefault from "LottieView" /* 6107 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_2 = ["source", "style", "collapsable"];
|
2026-10-03 08:58:59 +00:00
|
|
|
const View = react_native.View;
|
|
|
|
|
const jsx = Fragment.jsx;
|
|
|
|
|
const PureComponent = react.PureComponent;
|
2026-07-29 08:29:29 +00:00
|
|
|
class LottieAnimationView extends PureComponent {
|
|
|
|
|
constructor() {
|
2026-10-03 08:58:59 +00:00
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
|
2026-07-29 08:29:29 +00:00
|
|
|
applyArgumentsResult.animation = null;
|
|
|
|
|
applyArgumentsResult.setRef = function setRef(animation) {
|
2026-09-10 05:38:07 +00:00
|
|
|
applyArgumentsResult.animation = animation;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
play() {
|
|
|
|
|
if (null != this.animation) {
|
|
|
|
|
const animation = this.animation;
|
|
|
|
|
animation.play();
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
reset() {
|
|
|
|
|
if (null != this.animation) {
|
|
|
|
|
const animation = this.animation;
|
|
|
|
|
animation.reset();
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
pause() {
|
|
|
|
|
if (null != this.animation) {
|
|
|
|
|
const animation = this.animation;
|
|
|
|
|
animation.pause();
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
resume() {
|
|
|
|
|
if (null != this.animation) {
|
|
|
|
|
const animation = this.animation;
|
|
|
|
|
animation.resume();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
render() {
|
|
|
|
|
let source;
|
|
|
|
|
let style;
|
|
|
|
|
const props = this.props;
|
|
|
|
|
({ source, style } = props);
|
|
|
|
|
const collapsable = props.collapsable;
|
|
|
|
|
let json;
|
|
|
|
|
const tmp = _objectWithoutProperties(props, closure_2);
|
|
|
|
|
if (typeof source === "object") {
|
|
|
|
|
if (!source.uri) {
|
|
|
|
|
const _JSON = JSON;
|
|
|
|
|
json = JSON.stringify(source);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let tmp4;
|
|
|
|
|
if (undefined !== json) {
|
|
|
|
|
tmp4 = { aspectRatio: source.w / source.h };
|
|
|
|
|
const obj = { aspectRatio: source.w / source.h };
|
|
|
|
|
}
|
|
|
|
|
const items = [tmp4, style];
|
|
|
|
|
const items1 = [tmp4, style];
|
|
|
|
|
LottieViewDefault;
|
|
|
|
|
const merged = Object.assign(tmp);
|
|
|
|
|
return <View style={items} collapsable={collapsable}>{null}</View>;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
|
|
|
|
const prototype = LottieAnimationView.prototype;
|
2026-07-29 08:29:29 +00:00
|
|
|
LottieAnimationView.defaultProps = { autoPlay: true, loop: true, collapsable: false };
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("components_native/common/LottieAnimationView.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default LottieAnimationView;
|