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

+163
View File
@@ -0,0 +1,163 @@
// Metro module 1813 (f1814).
import { useLayoutEffect } from "react";
import { Platform } from "react-native";
import { useKeyboardContext } from "./NOOP_1799";
import { useSharedValue } from "./Module1606";
import { useKeyboardHandler } from "./useResizeMode";
Platform;
const OS = "android";
const __initData = {
code: "function pnpm_hooksTs1(e){const{isClosed,heightWhenOpened}=this.__closure;if(e.height>0){isClosed.value=false;heightWhenOpened.value=e.height;}}"
};
const __initData2 = {
code: "function pnpm_hooksTs2(e){const{progress,height}=this.__closure;progress.value=e.progress;height.value=e.height;}"
};
const __initData3 = {
code: "function pnpm_hooksTs3(e){const{progress,height}=this.__closure;progress.value=e.progress;height.value=e.height;}"
};
const __initData4 = {
code: "function pnpm_hooksTs4(e){const{isClosed,height,progress}=this.__closure;isClosed.value=e.height===0;height.value=e.height;progress.value=e.progress;}"
};
const __initData5 = {
code: "function pnpm_hooksTs5(e){const{padding,OS,translate}=this.__closure;if(e.height===0){padding.value=0;}if(OS===\"ios\"){translate.value=e.progress;}}"
};
const __initData6 = {
code: "function pnpm_hooksTs6(e){const{OS,translate}=this.__closure;if(OS!==\"ios\"){translate.value=e.progress;}}"
};
const __initData7 = {
code: "function pnpm_hooksTs7(e){const{padding,translate}=this.__closure;padding.value=0;translate.value=e.progress;}"
};
const __initData8 = {
code: "function pnpm_hooksTs8(e){const{padding,OS,translate}=this.__closure;padding.value=e.progress;if(OS!==\"ios\"){translate.value=e.progress;}}"
};
export const useKeyboardAnimation = () => {
const reanimated = useKeyboardContext().reanimated;
const sharedValue = useSharedValue(0);
const sharedValue2 = useSharedValue(0);
const sharedValue3 = useSharedValue(0);
const sharedValue4 = useSharedValue(true);
useLayoutEffect(() => {
const value2 = -reanimated.height.value;
const value = reanimated.progress.value;
sharedValue.value = value2;
sharedValue2.value = value2;
sharedValue3.value = value;
sharedValue4.value = value === 0;
}, []);
const _ = function _(a0) {
if (a0.height > 0) {
sharedValue4.value = false;
sharedValue.value = a0.height;
}
};
_.__closure = {
isClosed: sharedValue4,
heightWhenOpened: sharedValue
};
_.__workletHash = 12249381939606;
_.__initData = __initData;
const h = function h(a0) {
sharedValue3.value = a0.progress;
sharedValue2.value = a0.height;
};
h.__closure = {
progress: sharedValue3,
height: sharedValue2
};
h.__workletHash = 6522928191084;
h.__initData = __initData2;
const l = function l(a0) {
sharedValue3.value = a0.progress;
sharedValue2.value = a0.height;
};
l.__closure = {
progress: sharedValue3,
height: sharedValue2
};
l.__workletHash = 4743203414413;
l.__initData = __initData3;
const onEnd = function(a0) {
sharedValue4.value = a0.height === 0;
sharedValue2.value = a0.height;
sharedValue3.value = a0.progress;
};
onEnd.__closure = {
isClosed: sharedValue4,
height: sharedValue2,
progress: sharedValue3
};
onEnd.__workletHash = 7189399485148;
onEnd.__initData = __initData4;
useKeyboardHandler({
onStart: _,
onMove: h,
onInteractive: l,
onEnd
}, []);
return {
height: sharedValue2,
progress: sharedValue3,
heightWhenOpened: sharedValue,
isClosed: sharedValue4
};
};
export const useTranslateAnimation = () => {
const reanimated2 = useKeyboardContext().reanimated;
const sharedValue5 = useSharedValue(0);
const sharedValue6 = useSharedValue(0);
useLayoutEffect(() => {
sharedValue5.value = reanimated2.progress.value;
}, []);
const u = function u(a0) {
if (a0.height === 0) {
sharedValue5.value = 0;
}
};
u.__closure = {
padding: sharedValue5,
OS,
translate: sharedValue6
};
u.__workletHash = 12261942243858;
u.__initData = __initData5;
const n = function n(a0) {
sharedValue6.value = a0.progress;
};
n.__closure = {
OS,
translate: sharedValue6
};
n.__workletHash = 4704193858755;
n.__initData = __initData6;
const onInteractive = function(a0) {
sharedValue5.value = 0;
sharedValue6.value = a0.progress;
};
onInteractive.__closure = {
padding: sharedValue5,
translate: sharedValue6
};
onInteractive.__workletHash = 3250463859117;
onInteractive.__initData = __initData7;
const t = function t(a0) {
sharedValue5.value = a0.progress;
sharedValue6.value = a0.progress;
};
t.__closure = {
padding: sharedValue5,
OS,
translate: sharedValue6
};
t.__workletHash = 14425204766932;
t.__initData = __initData8;
useKeyboardHandler({
onStart: u,
onMove: n,
onInteractive,
onEnd: t
}, []);
return {
translate: sharedValue6,
padding: sharedValue5
};
};