* React Native accessibility * First round of changes * Latest update * Checkpoint * Wrap up * Lint * Remove unhelpful image hints * Fix navigation * Fix rebase and lint * Mitigate an known issue with the password entry in login * Fix composer dismiss * Remove focus on input elements for web * Remove i and npm * pls work * Remove stray declaration * Regenerate yarn.lock --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
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} />
|
|
)
|
|
}
|