-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
project:react-native-webIssue associated with react-native-webIssue associated with react-native-web
Milestone
Description
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
alttext. - 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, andshadow*styles. - No
repeatvalue forresizeMode.
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.
SamyPesse, KingAmo, davidprovan, nandorojo, natew and 20 moreRichardLindhout and dohomi
Metadata
Metadata
Assignees
Labels
project:react-native-webIssue associated with react-native-webIssue associated with react-native-web