Files
discord-decomp/sources/by-id/module-01846.jsx
T
2026-07-27 16:20:00 +03:00

28 lines
1.7 KiB
React

/* Metro module 1846; source: unknown; dependencies: [31, 27, 33, 1600, 1804, 1815] */
function _fun19987(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1973:6, offset: 0x00ebbb9a, size: 152 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importDefault(31) /* metro dependency 31 */;
const Animated = (require(27) /* metro dependency 27 */).Animated;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const createAnimatedComponent = Animated.createAnimatedComponent;
const KeyboardBackgroundView = (require(1600) /* metro dependency 1600 */).KeyboardBackgroundView;
const env0_3 = Reflect.apply(createAnimatedComponent, Animated, [KeyboardBackgroundView]);
exports.default = KeyboardExtender;
}
function KeyboardExtender({children, enabled}) { // fn#19988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1973:199, offset: 0x00ebbc32, size: 130 bytes, params: 2, frame: 18
const r5 = enabled === undefined || enabled;
const moduleValue = require(1804) /* metro dependency 1804 */;
const useKeyboardAnimation = moduleValue.useKeyboardAnimation;
const progress = Reflect.apply(useKeyboardAnimation, moduleValue, []).progress;
const KeyboardStickyView = (require(1815) /* metro dependency 1815 */).KeyboardStickyView;
return (
<KeyboardStickyView enabled={r5}>
{((Component) => <Component style={{opacity: progress}}>{children}</Component>)(env0_3)}
</KeyboardStickyView>
);
}