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

74 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 15352
// Function ID: 15353
// Dependencies: [19, 21, 4116, 4256, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 15352
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
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)();}}" };
2026-07-29 08:29:29 +00:00
const forwardRefResult = importAllResult.forwardRef((duration, ref) => {
2026-07-20 16:05:17 +00:00
let children;
let style;
2026-07-23 10:11:24 +00:00
duration = duration.duration;
2026-07-29 08:29:29 +00:00
let sharedValue;
ref = undefined;
let importAllResult;
2026-07-20 16:05:17 +00:00
({ children, style } = duration);
2026-07-29 08:29:29 +00:00
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 = 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-29 08:29:29 +00:00
const current = ref.current;
if (current != null) {
current();
2026-07-20 16:05:17 +00:00
}
}, items);
2026-07-29 08:29:29 +00:00
const imperativeHandle = importAllResult.useImperativeHandle(ref, () => ({
2026-07-20 16:05:17 +00:00
componentDidAppear() {
2026-07-29 08:29:29 +00:00
let obj = outer1_0(outer1_2[3]);
obj = { duration: closure_0 };
const result = store.set(obj.withTiming(1, obj));
2026-07-20 16:05:17 +00:00
},
componentDidEnter() {
2026-07-29 08:29:29 +00:00
let obj = outer1_0(outer1_2[3]);
obj = { duration: closure_0 };
const result = store.set(obj.withTiming(1, obj));
2026-07-20 16:05:17 +00:00
},
componentWillLeave(current) {
2026-07-29 08:29:29 +00:00
closure_2.current = current;
let obj = outer1_0(outer1_2[3]);
obj = { duration: closure_0 };
2026-07-20 16:05:17 +00:00
const fn = function t(arg0) {
if (arg0) {
2026-07-29 08:29:29 +00:00
outer1_0(outer1_2[2]).runOnJS(closure_3)();
const obj = outer1_0(outer1_2[2]);
2026-07-20 16:05:17 +00:00
}
};
2026-07-29 08:29:29 +00:00
obj = { runOnJS: outer1_0(outer1_2[2]).runOnJS, handleTransitionFinished: closure_3 };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 7644958904451;
2026-07-29 08:29:29 +00:00
fn.__initData = outer1_6;
const result = store.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-08-05 07:35:12 +00:00
let result = require("module_4116").fileFinishedImporting("modules/multi_account/native/FadeInOut.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;