54 lines
3.0 KiB
React
54 lines
3.0 KiB
React
/* Metro module 6423; source: unknown; dependencies: [6365, 31, 33, 6418] */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import Module06365 from './module-06365.js'; /* Metro dependency 6365 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CompatModule from './module-06418-Compat.js'; /* Metro dependency 6418 */
|
|
|
|
function _fun50374(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:6, offset: 0x01217fb1, size: 154 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
React;
|
|
exports.ScrollAnchor = ScrollAnchor;
|
|
function ScrollAnchor({scrollAnchorRef, horizontal}) { // fn#50375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:204, offset: 0x0121804b, size: 124 bytes, params: 2, frame: 19
|
|
const [property, env0_2] = env0_2Binding(useState(1000000), 2);
|
|
useImperativeHandle(scrollAnchorRef, function() {
|
|
return {scrollBy: _fun50377};
|
|
}, []);
|
|
return useMemo(_fun50379, [property, horizontal]);
|
|
function _fun50376() { // fn#50376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:312, offset: 0x012180c7, size: 16 bytes, params: 1, frame: 2
|
|
return {scrollBy: scrollBy};
|
|
function scrollBy(a0) { // fn#50377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:339, offset: 0x012180d7, size: 30 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
env1_2(_fun50378);
|
|
function _fun50378(a0) { // fn#50378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:363, offset: 0x012180f5, size: 16 bytes, params: 2, frame: 2
|
|
return a0 + env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun50379() { // fn#50379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6601:400, offset: 0x01218105, size: 100 bytes, params: 1, frame: 18
|
|
const CompatView = (CompatModule).CompatView;
|
|
const horizontalBinding = horizontal;
|
|
const value2 = 0;
|
|
return (
|
|
<CompatView
|
|
style={{
|
|
'position': 'absolute',
|
|
'height': 0,
|
|
top: horizontalBinding ? value2 : env0_1,
|
|
left: horizontal ? env0_1 : value2,
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun50374, 6423, [6365, 31, 33, 6418]) /* metro module 6423, dependencies: [6365, 31, 33, 6418] */;
|