decord/source/modules/multi_account/native/FadeInOut.tsx

69 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15179
// Function ID: 115571
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 3992, 4132, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 15179
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
let closure_5 = { code: "function FadeInOutTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
let closure_6 = { code: "function FadeInOutTsx2(finished){const{runOnJS,handleTransitionFinished}=this.__closure;if(finished){runOnJS(handleTransitionFinished)();}}" };
const forwardRefResult = importAllResult.forwardRef((duration) => {
let children;
let style;
2026-07-23 10:11:24 +00:00
duration = duration.duration;
2026-07-20 16:05:17 +00:00
({ children, style } = duration);
2026-07-23 10:11:24 +00:00
const sharedValue = duration(ref[2]).useSharedValue(0);
let obj = duration(ref[2]);
let fn = function h() {
2026-07-20 16:05:17 +00:00
return { opacity: sharedValue.get() };
};
fn.__closure = { opacity: sharedValue };
fn.__workletHash = 8749472415282;
fn.__initData = closure_5;
2026-07-23 10:11:24 +00:00
const animatedStyle = duration(ref[2]).useAnimatedStyle(fn);
ref = importAllResult.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [ref];
2026-07-23 10:11:24 +00:00
importAllResult = importAllResult.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (null != ref.current) {
ref.current();
}
}, items);
2026-07-23 10:11:24 +00:00
const imperativeHandle = importAllResult.useImperativeHandle(arg1, () => ({
2026-07-20 16:05:17 +00:00
componentDidAppear() {
2026-07-23 10:11:24 +00:00
let obj = duration(ref[3]);
obj = { duration: outer1_0 };
const result = outer1_1.set(obj.withTiming(1, obj));
2026-07-20 16:05:17 +00:00
},
componentDidEnter() {
2026-07-23 10:11:24 +00:00
let obj = duration(ref[3]);
obj = { duration: outer1_0 };
const result = outer1_1.set(obj.withTiming(1, obj));
2026-07-20 16:05:17 +00:00
},
componentWillLeave(current) {
2026-07-23 10:11:24 +00:00
outer1_2.current = current;
let obj = duration(ref[3]);
obj = { duration: outer1_0 };
2026-07-20 16:05:17 +00:00
const fn = function t(arg0) {
if (arg0) {
2026-07-23 10:11:24 +00:00
duration(ref[2]).runOnJS(outer2_3)();
const obj = duration(ref[2]);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
obj = { runOnJS: duration(ref[2]).runOnJS, handleTransitionFinished: outer1_3 };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 7644958904451;
2026-07-23 10:11:24 +00:00
fn.__initData = outer2_6;
const result = outer1_1.set(obj.withTiming(0, obj, "respect-motion-settings", fn));
2026-07-20 16:05:17 +00:00
}
}));
style = [, ];
style[0] = style;
style[1] = animatedStyle;
2026-07-23 10:11:24 +00:00
return jsx(sharedValue(ref[2]).View, { style, children });
2026-07-20 16:05:17 +00:00
});
2026-07-25 08:10:48 +00:00
let result = require("module_3992").fileFinishedImporting("modules/multi_account/native/FadeInOut.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;