Skip to content

FakePicker — @gj-kit/expo-media

A public interface from @gj-kit/expo-media/testing. The signature below is taken directly from the 0.6.1 release declaration.

import { FakePicker } from '@gj-kit/expo-media/testing';
interface FakePicker extends PickerAdapter {
readonly calls: {
/** 요청된 kinds 목록 — 권한 거부 문구가 kinds로 갈리므로(§4) 인자를 남긴다. */
readonly libraryPermission: readonly (readonly MediaKind[])[];
readonly cameraPermission: number;
readonly pick: readonly {
readonly kinds: readonly MediaKind[];
readonly max: number;
}[];
readonly capture: readonly {
readonly kind: MediaKind;
}[];
};
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: ./testing
  • Source: GitHub