Skip to content

capturedAtFromExif — @gj-kit/expo-media

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

import { capturedAtFromExif } from '@gj-kit/expo-media/core';
/**
* Resolves the preferred EXIF datetime field to an ISO instant.
*
* Normal `mediaMetadataFromExif` callers should retain its device-local
* default. Consumers that know an immutable historical event offset can pass
* it here and avoid silently interpreting a travel photo in the device's
* *current* time zone. A datetime which already carries an explicit ISO offset
* retains that offset; malformed timezone-less EXIF values are rejected.
*/
declare function capturedAtFromExif(exif?: Readonly<Record<string, unknown>> | null, options?: ExifCapturedAtOptions | undefined): string | undefined;

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