Is your feature request related to a problem? Please describe.
Provider a high-performance Image implementation for web. This issue is to discuss how we should rewrite Image to support modern web features.
Describe a solution you'd like
The new Image should implement the following feature requests…
- Support browser ML-generated
alt text.
- Support browser lazy loading.
- Support browser crossOrigin configuration.
- Display image in Windows High Contrast mode.
- Support image DPI switching.
- Support for CSS like
backgroundBlendMode.
- Available for SSR.
The new Image will not support the following APIs…
- No
tintColor, resizeMode, and shadow* styles.
- No
repeat value for resizeMode.
The proposed Image API looks like this…
<Image
alternativeText=''
crossOrigin='anonymous'
decoding='async'
draggable='false'
focusable='false'
loading='lazy'
nativeID=''
onError={() => {}}
onLoad={() => {}}
source={[ {uri, scale}, {uri, scale} ]}
style={{}}
testID=''
/>
Any dynamic loading via XHR/fetch would have to be layered upon that.
Additional context
Please comment with addition context and use cases.
Is your feature request related to a problem? Please describe.
Provider a high-performance
Imageimplementation for web. This issue is to discuss how we should rewriteImageto support modern web features.Describe a solution you'd like
The new
Imageshould implement the following feature requests…alttext.backgroundBlendMode.The new
Imagewill not support the following APIs…tintColor,resizeMode, andshadow*styles.repeatvalue forresizeMode.The proposed
ImageAPI looks like this…Any dynamic loading via XHR/fetch would have to be layered upon that.
Additional context
Please comment with addition context and use cases.