decord/source/1644_nativeEventEmitter.js

63 lines
2.4 KiB
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1644
// Function ID: 1645
2026-07-20 16:05:17 +00:00
// Name: nativeEventEmitter
2026-08-15 05:55:55 +00:00
// Dependencies: [17, 1645, 1646, 1647, 1648, 1649, 1650, 1651]
2026-07-20 16:05:17 +00:00
// Exports: RCTKeyboardExtender
2026-08-15 05:55:55 +00:00
// Module 1644 (nativeEventEmitter)
2026-08-24 06:08:38 +00:00
import KeyboardController from "KeyboardController" /* 1645 */;
import __INTERNAL_VIEW_CONFIG from "__INTERNAL_VIEW_CONFIG" /* 1646 */;
import __INTERNAL_VIEW_CONFIG2 from "__INTERNAL_VIEW_CONFIG" /* 1647 */;
import __INTERNAL_VIEW_CONFIG3 from "__INTERNAL_VIEW_CONFIG" /* 1648 */;
import __INTERNAL_VIEW_CONFIG4 from "__INTERNAL_VIEW_CONFIG" /* 1649 */;
import __INTERNAL_VIEW_CONFIG5 from "__INTERNAL_VIEW_CONFIG" /* 1650 */;
import __INTERNAL_VIEW_CONFIG6 from "__INTERNAL_VIEW_CONFIG" /* 1651 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ NativeEventEmitter, Platform } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
if (KeyboardController.default) {
let _default = KeyboardController.default;
2026-07-20 16:05:17 +00:00
} else {
const _Proxy = Proxy;
2026-07-29 08:29:29 +00:00
let obj = { get: null };
obj[0] = function get() {
2026-08-24 06:08:38 +00:00
error = new Error("The package 'react-native-keyboard-controller' doesn't seem to be linked. Make sure: \n\n- You rebuilt the app after installing the package\n- You are not using Expo Go\n");
2026-07-29 08:29:29 +00:00
throw error;
2026-07-20 16:05:17 +00:00
};
_default = new Proxy({}, obj);
}
2026-07-23 10:11:24 +00:00
let c0 = "KeyboardController::";
2026-07-29 08:29:29 +00:00
const nativeEventEmitter = new NativeEventEmitter(_default);
2026-07-20 16:05:17 +00:00
obj = {
addListener(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return nativeEventEmitter.addListener(c0 + arg0, arg1);
2026-07-20 16:05:17 +00:00
}
};
obj = {
addListener(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return nativeEventEmitter.addListener(c0 + arg0, arg1);
2026-07-20 16:05:17 +00:00
}
};
2026-07-29 08:29:29 +00:00
if (Platform.Version >= 30) {
2026-08-24 06:08:38 +00:00
let fn = __INTERNAL_VIEW_CONFIG.default;
2026-07-20 16:05:17 +00:00
} else {
fn = (children) => children.children;
}
export const KeyboardControllerNative = _default;
export const KeyboardEvents = obj;
export const FocusedInputEvents = obj;
export const WindowDimensionsEvents = {
addListener(arg0, arg1) {
2026-07-23 10:11:24 +00:00
return nativeEventEmitter.addListener(c0 + arg0, arg1);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
export const KeyboardControllerView = __INTERNAL_VIEW_CONFIG2.default;
export const KeyboardControllerViewCommands = __INTERNAL_VIEW_CONFIG2.Commands;
2026-07-20 16:05:17 +00:00
export const KeyboardGestureArea = fn;
2026-08-24 06:08:38 +00:00
export const RCTOverKeyboardView = __INTERNAL_VIEW_CONFIG3.default;
export const KeyboardBackgroundView = __INTERNAL_VIEW_CONFIG4.default;
2026-07-20 16:05:17 +00:00
export const RCTKeyboardExtender = (children) => children.children;
2026-08-24 06:08:38 +00:00
export const ClippingScrollView = __INTERNAL_VIEW_CONFIG5.default;
export const RCTKeyboardToolbarGroupView = __INTERNAL_VIEW_CONFIG6.default;