11 lines
652 B
TypeScript
11 lines
652 B
TypeScript
import type { SharedRefType } from 'expo';
|
|
import React from 'react';
|
|
import { ImageProps, ImageSource } from '../Image.types';
|
|
export interface SrcSetSource extends ImageSource {
|
|
srcset: string;
|
|
sizes: string;
|
|
uri: string;
|
|
type: 'srcset';
|
|
}
|
|
export default function useSourceSelection(sources: ImageSource[] | SharedRefType<'image'> | undefined, responsivePolicy: ImageProps['responsivePolicy'], containerRef: React.RefObject<HTMLDivElement | null>, measurementCallback?: ((target: HTMLElement, size: DOMRect) => void) | null): ImageSource | SrcSetSource | SharedRefType<'image'> | null;
|
|
//# sourceMappingURL=useSourceSelection.d.ts.map
|