Skip to content

expoDeviceSave — @gj-kit/expo-media

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

import { expoDeviceSave } from '@gj-kit/expo-media/save';
/**
* expo 기기 저장 어댑터(§5.6).
*
* @param input.isExpoGo `Constants.appOwnership === 'expo'` 판정 결과.
* ⚠ **호스트가 판정하고 값만 넘긴다.** 이것이 라이브러리에서 `expo-constants` 의존을 완전히
* 걷어내는 지점이다(§0.2). 전신은 `saveImages.ts:96`에서 `Constants`를 직접 import했고,
* 그 한 줄 때문에 저장 기능을 쓰지 않는 소비자까지 peer 하나를 더 짊어졌다.
*/
declare function expoDeviceSave(input?: {
readonly isExpoGo?: boolean | undefined;
} | undefined): MediaLibrarySaveAdapter;

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