decord/alpha/source/modules/keyboard/native/useKeyboardStateSharedValue.native.tsx

44 lines
2.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 11964
// Function ID: 11965
// Name: useKeyboardStateSharedValue
2026-10-12 06:59:38 +00:00
// Dependencies: [1499, 4850, 6668, 1897, 4987, 10373, 2]
2026-08-12 06:57:52 +00:00
// Exports: default, getKeyboardStateWorklet
2026-10-13 12:43:34 +00:00
// Module 11964 (useKeyboardStateSharedValue)
2026-10-12 06:59:38 +00:00
import updateSharedValueIfChangedDefault from "updateSharedValueIfChanged" /* 10373 */;
2026-10-09 10:00:15 +00:00
import subscribeToKeyboardUIStore from "subscribeToKeyboardUIStore" /* 1499 */;
2026-10-10 08:08:14 +00:00
import ReanimatedRexport from "ReanimatedRexport" /* 4850 */;
2026-10-12 06:59:38 +00:00
import useCustomKeyboardHeight_mod from "useCustomKeyboardHeight" /* 6668 */;
2026-10-09 10:00:15 +00:00
import useSystemKeyboardHeight_mod from "useSystemKeyboardHeight" /* 1897 */;
2026-10-10 08:08:14 +00:00
import useKeyboardType_mod from "useKeyboardType" /* 4987 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-08-12 06:57:52 +00:00
2026-10-03 08:58:59 +00:00
let useCustomKeyboardHeight;
let useKeyboardType;
let useSystemKeyboardHeight;
const makeMutable = ReanimatedRexport.makeMutable;
const obj = { customKeyboardHeight: useCustomKeyboardHeight.getCustomKeyboardHeight(), keyboardHeight: useSystemKeyboardHeight.getSystemKeyboardHeight(), keyboardType: useKeyboardType.getKeyboardType() };
useCustomKeyboardHeight = useCustomKeyboardHeight_mod;
useSystemKeyboardHeight = useSystemKeyboardHeight_mod;
useKeyboardType = useKeyboardType_mod;
const mutable = makeMutable(obj);
subscribeToKeyboardUIStore((arg0) => {
2026-10-03 08:58:59 +00:00
let customKeyboardHeight;
let keyboardHeight;
let keyboardType;
2026-08-12 06:57:52 +00:00
({ customKeyboardHeight, keyboardHeight, keyboardType } = arg0);
updateSharedValueIfChangedDefault(mutable, { customKeyboardHeight, keyboardHeight, keyboardType });
2026-08-12 06:57:52 +00:00
});
function getKeyboardStateWorklet() {
return mutable.get();
2026-08-12 06:57:52 +00:00
}
getKeyboardStateWorklet.__closure = { keyboardStateSharedValue: mutable };
2026-08-12 06:57:52 +00:00
getKeyboardStateWorklet.__workletHash = 1081829024717;
getKeyboardStateWorklet.__initData = { code: "function getKeyboardStateWorklet_useKeyboardStateSharedValueNativeTsx1(){const{keyboardStateSharedValue}=this.__closure;return keyboardStateSharedValue.get();}" };
const result = size.fileFinishedImporting("modules/keyboard/native/useKeyboardStateSharedValue.native.tsx");
2026-08-12 06:57:52 +00:00
export default function useKeyboardStateSharedValue() {
return mutable;
2026-08-12 06:57:52 +00:00
};
export { getKeyboardStateWorklet };