blob: 8c95a581e9a38529c73d600c80f5fcb4c86c3642 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import React from 'react'
import FastImage, {FastImageProps, Source} from 'react-native-fast-image'
export default FastImage
export type {OnLoadEvent, ImageStyle, Source} from 'react-native-fast-image'
export function HighPriorityImage({source, ...props}: FastImageProps) {
const updatedSource = {
uri: typeof source === 'object' && source ? source.uri : '',
priority: FastImage.priority.high,
} as Source
return <FastImage source={updatedSource} {...props} />
}
|