47 lines
2.5 KiB
React
47 lines
2.5 KiB
React
/* Metro module 1769; source: unknown; dependencies: [31, 1770] */
|
|
function _fun19509(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1896:6, offset: 0x00eac3c1, size: 126 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = require(31) /* metro dependency 31 */;
|
|
const env0_0 = value.useEffect;
|
|
const env0_1 = value.useRef;
|
|
value = importDefault(1770) /* metro dependency 1770 */;
|
|
value = new value();
|
|
exports.useFrameCallback = useFrameCallback;
|
|
}
|
|
|
|
function useFrameCallback(a0) { // fn#19510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1896:165, offset: 0x00eac43f, size: 122 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const r3 = arguments.length > 1 && arguments[1] !== undefined;
|
|
const r5 = r3 ? arguments[1] : !r3;
|
|
const value2 = useRef({setActive: setActive, isActive: r5, callbackId: -1});
|
|
useEffect(_fun19512, [a0, r5]);
|
|
return value2.current;
|
|
}
|
|
|
|
function setActive(a0) { // fn#19511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1896:274, owner: useFrameCallback.setActive, offset: 0x00eac4b9, size: 59 bytes, params: 2, frame: 14
|
|
const binding = env1_2;
|
|
binding.manageStateFrameCallback(env0_1.current.callbackId, a0);
|
|
env0_1.current.isActive = a0;
|
|
}
|
|
|
|
function _fun19512() { // fn#19512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1896:406, offset: 0x00eac4f4, size: 97 bytes, params: 1, frame: 14
|
|
let current = env0_1.current;
|
|
current.callbackId = env1_2.registerFrameCallback(env0_0);
|
|
current = env0_1.current;
|
|
current = env0_1.current;
|
|
const setActive = current.setActive;
|
|
const isActive = env0_1.current.isActive;
|
|
Reflect.apply(setActive, current, [isActive]);
|
|
return _fun19513;
|
|
}
|
|
|
|
function _fun19513() { // fn#19513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1896:528, offset: 0x00eac555, size: 47 bytes, params: 1, frame: 12
|
|
const binding = env2_2;
|
|
const unregisterFrameCallback = binding.unregisterFrameCallback;
|
|
const currentBinding = current;
|
|
Reflect.apply(unregisterFrameCallback, binding, [currentBinding.callbackId]);
|
|
currentBinding.callbackId = -1;
|
|
}
|
|
|