64 lines
2.4 KiB
TypeScript
64 lines
2.4 KiB
TypeScript
// Metro module 10386 (f10387).
|
|
import { memo } from "react";
|
|
import * as _ReanimatedRexport from "../../reanimated/ReanimatedRexport";
|
|
import { makeMutable } from "../../reanimated/ReanimatedRexport";
|
|
import { useKeyboardHandler, KeyboardProvider } from "../../../_bundle/Module1595";
|
|
const animatedKeyboardHeight = makeMutable(0);
|
|
const animatedKeyboardState = makeMutable(_ReanimatedRexport.KeyboardState.UNKNOWN);
|
|
const __initData = {
|
|
code: "function AnimatedKeyboardProviderControllerTsx1(e){const{animatedKeyboardState,KeyboardState}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);}"
|
|
};
|
|
const __initData2 = {
|
|
code: "function AnimatedKeyboardProviderControllerTsx2(e){const{animatedKeyboardHeight}=this.__closure;animatedKeyboardHeight.set(e.height);}"
|
|
};
|
|
const __initData3 = {
|
|
code: "function AnimatedKeyboardProviderControllerTsx3(e){const{animatedKeyboardState,KeyboardState,animatedKeyboardHeight}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);animatedKeyboardHeight.set(e.height);}"
|
|
};
|
|
let Component2 = memo(function() {
|
|
const onStart = function(a0) {
|
|
animatedKeyboardState.set(a0.height === 0 ? _ReanimatedRexport.KeyboardState.CLOSED : _ReanimatedRexport.KeyboardState.OPEN);
|
|
};
|
|
onStart.__closure = {
|
|
animatedKeyboardState,
|
|
KeyboardState: _ReanimatedRexport.KeyboardState
|
|
};
|
|
onStart.__workletHash = 12130162639136;
|
|
onStart.__initData = __initData;
|
|
const t = function t(a0) {
|
|
animatedKeyboardHeight.set(a0.height);
|
|
};
|
|
t.__closure = {
|
|
animatedKeyboardHeight
|
|
};
|
|
t.__workletHash = 1398293011995;
|
|
t.__initData = __initData2;
|
|
const e = function e(a0) {
|
|
animatedKeyboardState.set(a0.height === 0 ? _ReanimatedRexport.KeyboardState.CLOSED : _ReanimatedRexport.KeyboardState.OPEN);
|
|
animatedKeyboardHeight.set(a0.height);
|
|
};
|
|
e.__closure = {
|
|
animatedKeyboardState,
|
|
KeyboardState: _ReanimatedRexport.KeyboardState,
|
|
animatedKeyboardHeight
|
|
};
|
|
e.__workletHash = 10688534401196;
|
|
e.__initData = __initData3;
|
|
useKeyboardHandler({
|
|
onStart,
|
|
onMove: t,
|
|
onEnd: e
|
|
}, []);
|
|
return null;
|
|
});
|
|
const r38 = {
|
|
Component: function Component(props) {
|
|
return <KeyboardProvider enabled navigationBarTranslucent preserveEdgeToEdge statusBarTranslucent>
|
|
{props.children}
|
|
<Component2 />
|
|
</KeyboardProvider>;
|
|
},
|
|
animatedKeyboardHeight,
|
|
animatedKeyboardState
|
|
};
|
|
export default r38;
|