Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
36 lines
1.7 KiB
TypeScript
36 lines
1.7 KiB
TypeScript
// Module ID: 12165
|
|
// Function ID: 12166
|
|
// Name: useKeyboardStateSharedValue
|
|
// Dependencies: [1479, 4373, 5660, 1877, 4504, 11491, 2]
|
|
// Exports: default, getKeyboardStateWorklet
|
|
|
|
// Module 12165 (useKeyboardStateSharedValue)
|
|
import updateSharedValueIfChangedDefault from "updateSharedValueIfChanged" /* 11491 */;
|
|
import subscribeToKeyboardUIStore from "subscribeToKeyboardUIStore" /* 1479 */;
|
|
|
|
const ReanimatedRexport = fn(4373);
|
|
const obj2 = { customKeyboardHeight: null, keyboardHeight: null, keyboardType: null };
|
|
const useCustomKeyboardHeight = fn(5660);
|
|
obj2.customKeyboardHeight = useCustomKeyboardHeight.getCustomKeyboardHeight();
|
|
const useSystemKeyboardHeight = fn(1877);
|
|
obj2.keyboardHeight = useSystemKeyboardHeight.getSystemKeyboardHeight();
|
|
const useKeyboardType = fn(4504);
|
|
obj2.keyboardType = useKeyboardType.getKeyboardType();
|
|
const mutable = ReanimatedRexport.makeMutable(obj2);
|
|
subscribeToKeyboardUIStore((arg0) => {
|
|
({ customKeyboardHeight, keyboardHeight, keyboardType } = arg0);
|
|
updateSharedValueIfChangedDefault(mutable, { customKeyboardHeight, keyboardHeight, keyboardType });
|
|
});
|
|
function getKeyboardStateWorklet() {
|
|
return mutable.get();
|
|
}
|
|
getKeyboardStateWorklet.__closure = { keyboardStateSharedValue: mutable };
|
|
getKeyboardStateWorklet.__workletHash = 1081829024717;
|
|
getKeyboardStateWorklet.__initData = { code: "function getKeyboardStateWorklet_useKeyboardStateSharedValueNativeTsx1(){const{keyboardStateSharedValue}=this.__closure;return keyboardStateSharedValue.get();}" };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/keyboard/native/useKeyboardStateSharedValue.native.tsx");
|
|
|
|
export default function useKeyboardStateSharedValue() {
|
|
return mutable;
|
|
};
|
|
export { getKeyboardStateWorklet };
|