decord/source/343_KeyboardImpl.js

95 lines
2.3 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 343
// Function ID: 344
2026-07-20 16:05:17 +00:00
// Name: KeyboardImpl
2026-07-29 08:29:29 +00:00
// Dependencies: [41, 42, 209, 303, 342]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 343 (KeyboardImpl)
2026-08-24 06:08:38 +00:00
import _createClassDefault from "_createClass" /* 42 */;
import closure_2 from "_classCallCheck" /* 41 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const KeyboardImpl = importDefault;
class KeyboardImpl {
constructor() {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_2(this, self);
2026-07-29 08:29:29 +00:00
tmp2 = new require("NativeEventEmitter")(null);
this._emitter = tmp2;
addListenerResult = this.addListener("keyboardDidShow", (_currentlyShowing) => {
self._currentlyShowing = _currentlyShowing;
});
addListenerResult1 = this.addListener("keyboardDidHide", (arg0) => {
self._currentlyShowing = null;
});
return;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
const items = [
{
2026-07-20 16:05:17 +00:00
key: "addListener",
value: function addListener(arg0, arg1, arg2) {
const _emitter = this._emitter;
return _emitter.addListener(arg0, arg1);
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "removeAllListeners",
value: function removeAllListeners(arg0) {
const _emitter = this._emitter;
_emitter.removeAllListeners(arg0);
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "dismiss",
value: function dismiss() {
2026-07-29 08:29:29 +00:00
KeyboardImpl(303)();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "isVisible",
value: function isVisible() {
return this._currentlyShowing;
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "metrics",
value: function metrics() {
const _currentlyShowing = this._currentlyShowing;
let endCoordinates;
2026-07-29 08:29:29 +00:00
if (_currentlyShowing != null) {
2026-07-20 16:05:17 +00:00
endCoordinates = _currentlyShowing.endCoordinates;
}
return endCoordinates;
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "scheduleLayoutAnimation",
value: function scheduleLayoutAnimation(arg0) {
({ duration, easing } = arg0);
let tmp = null != duration;
if (tmp) {
tmp = 0 !== duration;
}
if (tmp) {
2026-07-29 08:29:29 +00:00
let obj = KeyboardImpl(342);
obj = { duration: null, update: null };
obj[0] = duration;
obj = { duration: null, type: null };
obj[0] = duration;
2026-07-20 16:05:17 +00:00
let str = null != easing;
if (str) {
2026-07-29 08:29:29 +00:00
str = tmp2(342).Types[easing];
2026-07-20 16:05:17 +00:00
}
if (!str) {
str = "keyboard";
}
2026-07-29 08:29:29 +00:00
obj[1] = str;
obj[1] = obj;
2026-07-20 16:05:17 +00:00
obj.configureNext(obj);
2026-07-29 08:29:29 +00:00
tmp2 = KeyboardImpl;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
}
];
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
export default new _createClassDefault(KeyboardImpl, items)();