2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 12161
|
|
|
|
|
// Function ID: 12162
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useKeyboardStateSharedValue
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1479, 4373, 5660, 1877, 4504, 11487, 2]
|
2026-08-12 06:57:52 +00:00
|
|
|
// Exports: default, getKeyboardStateWorklet
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 12161 (useKeyboardStateSharedValue)
|
|
|
|
|
import updateSharedValueIfChangedDefault from "updateSharedValueIfChanged" /* 11487 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import subscribeToKeyboardUIStore from "subscribeToKeyboardUIStore" /* 1479 */;
|
2026-08-12 06:57:52 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
const ReanimatedRexport = fn(4373);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { customKeyboardHeight: null, keyboardHeight: null, keyboardType: null };
|
2026-09-12 13:45:10 +00:00
|
|
|
const useCustomKeyboardHeight = fn(5660);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.customKeyboardHeight = useCustomKeyboardHeight.getCustomKeyboardHeight();
|
|
|
|
|
const useSystemKeyboardHeight = fn(1877);
|
|
|
|
|
obj2.keyboardHeight = useSystemKeyboardHeight.getSystemKeyboardHeight();
|
2026-09-12 13:45:10 +00:00
|
|
|
const useKeyboardType = fn(4504);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.keyboardType = useKeyboardType.getKeyboardType();
|
|
|
|
|
const mutable = ReanimatedRexport.makeMutable(obj2);
|
|
|
|
|
subscribeToKeyboardUIStore((arg0) => {
|
2026-08-12 06:57:52 +00:00
|
|
|
({ customKeyboardHeight, keyboardHeight, keyboardType } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
updateSharedValueIfChangedDefault(mutable, { customKeyboardHeight, keyboardHeight, keyboardType });
|
2026-08-12 06:57:52 +00:00
|
|
|
});
|
|
|
|
|
function getKeyboardStateWorklet() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return mutable.get();
|
2026-08-12 06:57:52 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +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();}" };
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/keyboard/native/useKeyboardStateSharedValue.native.tsx");
|
2026-08-12 06:57:52 +00:00
|
|
|
|
|
|
|
|
export default function useKeyboardStateSharedValue() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return mutable;
|
2026-08-12 06:57:52 +00:00
|
|
|
};
|
|
|
|
|
export { getKeyboardStateWorklet };
|