decord/source/1596_nativeEventEmitter.js

58 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1596
// Function ID: 1597
2026-07-20 16:05:17 +00:00
// Name: nativeEventEmitter
2026-07-29 08:29:29 +00:00
// Dependencies: [17, 1597, 1598, 1599, 1600, 1601, 1602, 1603]
2026-07-20 16:05:17 +00:00
// Exports: RCTKeyboardExtender
2026-07-29 08:29:29 +00:00
// Module 1596 (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;