Skip to content

MediaPickerActions — @gj-kit/expo-media

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

import { MediaPickerActions } from '@gj-kit/expo-media';
interface MediaPickerActions {
/** Request library permission and return at most `max` normalized assets. */
pick(options?: MediaPickOptions | undefined): Promise<readonly PickedAsset[]>;
/** Request camera permission and return at most one normalized asset. */
capture(options?: {
readonly kind?: MediaKind | undefined;
} | undefined): Promise<readonly PickedAsset[]>;
}

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: .
  • Source: GitHub