UNPKG

react-native-fast-image

Version:
12 lines (11 loc) • 919 B
import type { FastImageProps } from './index'; export declare const ARIA_KEYS: readonly ['alt', 'aria-busy', 'aria-checked', 'aria-disabled', 'aria-expanded', 'aria-hidden', 'aria-label', 'aria-labelledby', 'aria-live', 'aria-selected', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'id', 'tabIndex']; type AriaProps = Pick<FastImageProps, (typeof ARIA_KEYS)[number] | 'accessible' | 'accessibilityState' | 'accessibilityValue' | 'focusable'>; type TVProps = { isTVSelectable?: boolean | null; }; type NativeProps<P> = Omit<P & FastImageProps, (typeof ARIA_KEYS)[number]> & TVProps; export declare function resolveAriaProps<P extends AriaProps>(props: P): NativeProps<P>; export declare function resolveLabel(ariaLabel: string | undefined, accessibilityLabel: string | undefined, alt: unknown): string | undefined; export declare function isLabel(value: unknown): value is string; export {};