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

66 lines
2.3 KiB
TypeScript
Raw Normal View History

// Module ID: 16412
// Function ID: 16413
// Name: FadeInOut
// Dependencies: [19, 21, 4310, 4575, 2]
2026-07-20 16:05:17 +00:00
// Module 16412 (FadeInOut)
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const jsx = fn(21).jsx;
const __initData = { code: "function FadeInOutTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
2026-07-20 16:05:17 +00:00
let closure_6 = { code: "function FadeInOutTsx2(finished){const{runOnJS,handleTransitionFinished}=this.__closure;if(finished){runOnJS(handleTransitionFinished)();}}" };
const size = fn(2);
let result = size.fileFinishedImporting("modules/multi_account/native/FadeInOut.tsx");
export default noop.forwardRef((duration, ref) => {
2026-07-23 10:11:24 +00:00
duration = duration.duration;
2026-07-29 08:29:29 +00:00
ref = undefined;
noop = undefined;
2026-07-20 16:05:17 +00:00
({ children, style } = duration);
const sharedValue = duration(ref[2]).useSharedValue(0);
2026-07-23 10:11:24 +00:00
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 = __initData;
2026-07-23 10:11:24 +00:00
const animatedStyle = duration(ref[2]).useAnimatedStyle(fn);
ref = noop.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [ref];
noop = noop.useCallback(() => {
2026-07-29 08:29:29 +00:00
const current = ref.current;
if (current != null) {
current();
2026-07-20 16:05:17 +00:00
}
}, items);
const imperativeHandle = noop.useImperativeHandle(ref, () => ({
2026-07-20 16:05:17 +00:00
componentDidAppear() {
const result = sharedValue.set(duration(ref[3]).withTiming(1, { duration }));
2026-07-20 16:05:17 +00:00
},
componentDidEnter() {
const result = sharedValue.set(duration(ref[3]).withTiming(1, { duration }));
2026-07-20 16:05:17 +00:00
},
componentWillLeave(current) {
closure_1_2.current = current;
2026-07-20 16:05:17 +00:00
const fn = function t(arg0) {
if (arg0) {
duration(ref[2]).runOnJS(handleTransitionFinished)();
const obj = duration(ref[2]);
2026-07-20 16:05:17 +00:00
}
};
let obj = duration(ref[3]);
const obj2 = { duration };
fn.__closure = { runOnJS: duration(ref[2]).runOnJS, handleTransitionFinished };
2026-07-20 16:05:17 +00:00
fn.__workletHash = 7644958904451;
fn.__initData = __initData;
const result = sharedValue.set(obj.withTiming(0, obj2, "respect-motion-settings", fn));
2026-07-20 16:05:17 +00:00
}
}));
const obj3 = { style: null, children };
const items1 = [style, animatedStyle];
obj3.style = items1;
return jsx(sharedValue(ref[2]).View, { style: null, children });
2026-07-20 16:05:17 +00:00
});