decord/source/design/components/Sheet/native/useBottomSheetRef.tsx

25 lines
619 B
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 7957
// Function ID: 7958
2026-07-20 16:05:17 +00:00
// Name: useBottomSheetRef
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 2]
2026-07-20 16:05:17 +00:00
// Exports: useBottomSheetRef
2026-07-31 08:44:05 +00:00
// Module 7957 (useBottomSheetRef)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("design/components/Sheet/native/useBottomSheetRef.tsx");
2026-07-20 16:05:17 +00:00
export const useBottomSheetRef = function useBottomSheetRef() {
2026-07-23 10:11:24 +00:00
ref = ref.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [ref];
return {
bottomSheetRef: ref,
2026-07-23 10:11:24 +00:00
bottomSheetClose: ref.useCallback(() => {
2026-07-20 16:05:17 +00:00
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (current != null) {
2026-07-20 16:05:17 +00:00
current.closeActionSheet();
}
}, items)
};
};