decord/source/1644_nativeEventEmitter.js

58 lines
2.1 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-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
let NativeEventEmitter;
let Platform;
({ NativeEventEmitter, Platform } = get_ActivityIndicator);
2026-07-23 10:11:24 +00:00
if (require("KeyboardController").default) {
let _default = require("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() {
const 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");
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-07-23 10:11:24 +00:00
let fn = require("__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-07-23 10:11:24 +00:00
export const KeyboardControllerView = require("__INTERNAL_VIEW_CONFIG").default;
export const KeyboardControllerViewCommands = require("__INTERNAL_VIEW_CONFIG").Commands;
2026-07-20 16:05:17 +00:00
export const KeyboardGestureArea = fn;
2026-07-23 10:11:24 +00:00
export const RCTOverKeyboardView = require("__INTERNAL_VIEW_CONFIG").default;
export const KeyboardBackgroundView = require("__INTERNAL_VIEW_CONFIG").default;
2026-07-20 16:05:17 +00:00
export const RCTKeyboardExtender = (children) => children.children;
2026-07-23 10:11:24 +00:00
export const ClippingScrollView = require("__INTERNAL_VIEW_CONFIG").default;
export const RCTKeyboardToolbarGroupView = require("__INTERNAL_VIEW_CONFIG").default;