26 lines
1.5 KiB
TypeScript
26 lines
1.5 KiB
TypeScript
/* Metro module 7326; source: design/components/Sheet/native/useBottomSheetRef.tsx; dependencies: [31, 2] */
|
|
function _fun59021(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7504:6, offset: 0x016de771, size: 104 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importAll(31) /* metro dependency 31 */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Sheet/native/useBottomSheetRef.tsx');
|
|
exports.useBottomSheetRef = useBottomSheetRef;
|
|
}
|
|
|
|
function useBottomSheetRef() { // fn#59022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7504:212, offset: 0x016de7d9, size: 63 bytes, params: 1, frame: 15
|
|
const binding = env0_0;
|
|
const value = binding.useRef(null);
|
|
const useCallback = binding.useCallback;
|
|
let object = [value];
|
|
object = {bottomSheetRef: value, bottomSheetClose: Reflect.apply(useCallback, binding, [_fun59023, object])};
|
|
return object;
|
|
}
|
|
|
|
function _fun59023() { // fn#59023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7504:279, offset: 0x016de818, size: 32 bytes, params: 1, frame: 9
|
|
const current = env0_0.current;
|
|
if (current != null) {
|
|
current.closeActionSheet();
|
|
}
|
|
}
|
|
|