81 lines
4.8 KiB
React
81 lines
4.8 KiB
React
/* Metro module 1643; source: unknown; dependencies: [29, 31, 27, 33, 1644, 1750, 1748, 1749] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateAnimatedComponentModule from './module-01644-createAnimatedComponent.js'; /* Metro dependency 1644 */
|
|
import * as AnimatedViewModule from './module-01750-AnimatedView.js'; /* Metro dependency 1750 */
|
|
|
|
function _fun17923(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1770:6, offset: 0x00e7a0aa, size: 221 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_2 = ['itemLayoutAnimation', 'skipEnteringExitingAnimations', 'CellRendererComponentStyle'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const FlatList = (ReactNativeModule).FlatList;
|
|
const env0_7 = (CreateAnimatedComponentModule).createAnimatedComponent(FlatList);
|
|
exports.ReanimatedFlatList = (require(1749) /* metro dependency 1749 */).componentWithRef(FlatListForwardRefRender);
|
|
function FlatListForwardRefRender(a0, a1) { // fn#17924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1770:322, offset: 0x00e7a187, size: 235 bytes, params: 3, frame: 21
|
|
const itemLayoutAnimation = a0.itemLayoutAnimation;
|
|
const skipEnteringExitingAnimations = a0.skipEnteringExitingAnimations;
|
|
const CellRendererComponentStyle = a0.CellRendererComponentStyle;
|
|
let binding = ObjectWithoutProperties;
|
|
const value2 = binding(a0, env0_2);
|
|
if (!('scrollEventThrottle' in value2)) {
|
|
value2.scrollEventThrottle = 1;
|
|
}
|
|
useRef(itemLayoutAnimation).current = itemLayoutAnimation;
|
|
useRef(CellRendererComponentStyle).current = CellRendererComponentStyle;
|
|
const value5 = React.useMemo(_fun17925, []);
|
|
binding = env0_7;
|
|
const Object = global.Object;
|
|
const binding2 = ((Component) => <Component {...Object.assign({ref: a1}, value2,
|
|
{CellRendererComponent: value5})} />)(binding);
|
|
if (skipEnteringExitingAnimations === undefined) {
|
|
return binding2;
|
|
} else {
|
|
const LayoutAnimationConfig = (require(1748) /* metro dependency 1748 */).LayoutAnimationConfig;
|
|
return (
|
|
<LayoutAnimationConfig skipEntering skipExiting>
|
|
{binding2}
|
|
</LayoutAnimationConfig>
|
|
);
|
|
}
|
|
function _fun17925() { // fn#17925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1770:579, offset: 0x00e7a272, size: 28 bytes, params: 1, frame: 13
|
|
return ((a0, a1) => {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun17927;
|
|
})(env0_0, env0_1);
|
|
function createCellRendererComponent(a0, a1) { // fn#17926, offset: 0x00e7a28e, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return CellRendererComponent;
|
|
function CellRendererComponent(a0) { // fn#17927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1770:646, owner: createCellRendererComponent.CellRendererComponent, offset: 0x00e7a2a5, size: 228 bytes, params: 2, frame: 21
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = undefined;
|
|
const AnimatedView = (AnimatedViewModule).AnimatedView;
|
|
return (
|
|
<AnimatedView
|
|
layout={env0_0 == null ? value : env0_0.current}
|
|
onLayout={a0.onLayout}
|
|
style={[a0.style,
|
|
typeof (require == null ? value : require.current) === 'function' ? require == null ? value : require.current({index: a0.index,
|
|
item: a0.item}) : require == null ? value : require.current]}
|
|
>
|
|
{a0.children}
|
|
</AnimatedView>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun17923, 1643, [29, 31, 27, 33, 1644, 1750, 1748,
|
|
1749]) /* metro module 1643, dependencies: [29, 31, 27, 33, 1644, 1750, 1748, 1749] */;
|