콘텐츠로 이동

expoPicker — @gj-kit/expo-media

@gj-kit/expo-media/picker에서 공개하는 function입니다. package version 0.6.1의 release declaration을 그대로 표시합니다.

import { expoPicker } from '@gj-kit/expo-media/picker';
/** §5.6 — `"./picker"`의 유일한 공개 심볼. */
declare function expoPicker(options?: {
/**
* 기본 `true` — iOS PhotoKit 원본 표현 fast path(§7.1).
*
* `false`로 내리면 `preferredAssetRepresentationMode`만 빠져 시스템이 표현을 고르게 된다
* (HEIC → JPEG 트랜스코딩이 일어날 수 있다). `quality`·`exif`·`allowsEditing` 세 값은
* **어떤 경우에도 바뀌지 않는다** — 그 셋이 흔들리면 크기 정합(§7 하드닝 3)과 메타데이터가
* 함께 깨지기 때문이다. 즉 이 옵션은 fast path의 on/off이지 옵션 가방이 아니다.
*/
readonly preferOriginalRepresentation?: boolean | undefined;
/**
* When original PhotoKit data is unsuitable for an app-owned processing flow, ask iOS for a
* compatible representation. This keeps the default upload-oriented original fast path intact.
*/
readonly preferCompatibleRepresentation?: boolean | undefined;
/**
* Retry a failed single-image library launch with UIImagePickerController's editing flow.
* This is useful for iCloud/HEIC assets that PHPicker cannot materialize. The retry is limited
* to one selection because Expo does not support editing together with multi-selection.
*/
readonly retryWithEditingOnError?: boolean | undefined;
}): PickerAdapter;

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/expo-media
  • 버전: 0.6.1
  • 공개 entry: ./picker
  • 소스: GitHub

§5.6 — "./picker"의 유일한 공개 심볼.