decord/source/modules/media_keyboard/native/showMediaKeyboardActionSheet.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

36 lines
1.6 KiB
TypeScript

// Module ID: 10777
// Function ID: 10778
// Name: showMediaKeyboardActionSheet
// Dependencies: [17, 4605, 10778, 1897, 2]
// Exports: hideMediaKeyboardActionSheet, presentLimitedLibraryPicker, showMediaKeyboardActionSheet
// Module 10777 (showMediaKeyboardActionSheet)
import _mod17 from "module_17" /* 17 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4605 */;
import size from "module_2" /* 2 */;
const NativeModules = _mod17.NativeModules;
const MEDIA_KEYBOARD_ACTION_SHEET = "MEDIA_KEYBOARD_ACTION_SHEET";
let result = size.fileFinishedImporting("modules/media_keyboard/native/showMediaKeyboardActionSheet.tsx");
export const hideMediaKeyboardActionSheet = function hideMediaKeyboardActionSheet() {
ActionSheetActionCreatorsDefault.hideActionSheet(MEDIA_KEYBOARD_ACTION_SHEET);
};
export const showMediaKeyboardActionSheet = function showMediaKeyboardActionSheet(arg0) {
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(10778, dependencyMap.paths), MEDIA_KEYBOARD_ACTION_SHEET, arg0);
};
export const presentLimitedLibraryPicker = function presentLimitedLibraryPicker() {
const NativePermissionManager = NativeModules.NativePermissionManager;
let result;
if (NativePermissionManager != null) {
const presentLimitedLibraryPicker = NativePermissionManager.presentLimitedLibraryPicker;
if (presentLimitedLibraryPicker != null) {
result = presentLimitedLibraryPicker();
}
}
if (result == null) {
result = Promise.resolve();
}
return result;
};