blob: e779fa3787dc36bb082eb86d7f48444cdad81c98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import React from 'react'
import {Image, ImageProps, ImageSource} from 'expo-image'
interface HighPriorityImageProps extends ImageProps {
source: ImageSource
}
export function HighPriorityImage({source, ...props}: HighPriorityImageProps) {
const updatedSource = {
uri: typeof source === 'object' && source ? source.uri : '',
} satisfies ImageSource
return (
<Image accessibilityIgnoresInvertColors source={updatedSource} {...props} />
)
}
|