react-native-camera-kit - v16.1.2
    Preparing search index...

    Type Alias CaptureData

    Result of a successful capture() call.

    • iOS: Saves a JPEG under Caches at .../Library/Caches/<bundleId>/com.tesla.react-native-camera-kit/<unique>.jpg. Includes size in bytes; width/height reflect the final pixel dimensions.
    • Android: Uses MediaStore/output file; returns a file:// or content:// URI. id/path may be empty on some devices. width/height intend to describe the saved image.
    • Orientation is already encoded in pixels and EXIF. No JS rotation required.
    import RNFS from 'react-native-fs';
    const photo = await ref.current?.capture();
    if (photo?.uri?.startsWith('file://')) {
    const fileName = photo.name;
    const dest = `${RNFS.DocumentDirectoryPath}/${fileName}`;
    await RNFS.moveFile(photo.uri.replace('file://', ''), dest);
    }
    if (photo?.uri?.startsWith('content://')) {
    // copy stream to app storage before long‑term use
    }
    type CaptureData = {
        height: number;
        id?: string;
        name: string;
        path?: string;
        size?: number;
        uri: string;
        width: number;
    }
    Index

    Properties

    height: number

    Image height in pixels after all processing is applied.

    id?: string

    Android only: MediaStore ID when available. Useful for interacting with the platform media APIs.

    name: string

    File name (no path), suitable for display or saving elsewhere.

    path?: string

    Android only: absolute filesystem path when available. May be empty on devices which only return a content:// URI.

    size?: number

    iOS only: byte size of the image data written to the temporary file. Provided for convenience when saving/uploading the file.

    uri: string

    Local URI to the captured image.

    • iOS: file:///.../Library/Caches/<bundleId>/com.tesla.react-native-camera-kit/<unique>.jpg
    • Android: usually a file:// path; may be a content:// URI depending on device/storage.
    width: number

    Image width in pixels after all processing is applied.