-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate Image.style.tintColor and Image.style.resizeMode #2383
Labels
enhancement
Requires extension or creation of new React Native API
has: pr
Subject of a pull request
project:react-native-web
Issue associated with react-native-web
Milestone
Comments
necolas
added
enhancement
Requires extension or creation of new React Native API
project:react-native-web
Issue associated with react-native-web
labels
Aug 28, 2022
necolas
added a commit
that referenced
this issue
Aug 30, 2022
The resizeMode and tintColor props should be used instead. The styles will be removed in a future release. Fix #2383
necolas
added a commit
that referenced
this issue
Aug 30, 2022
The resizeMode and tintColor props should be used instead. The styles will be removed in a future release. Fix #2383
necolas
added a commit
that referenced
this issue
Sep 1, 2022
The resizeMode and tintColor props should be used instead. The styles will be removed in a future release. Fix #2383
necolas
added a commit
that referenced
this issue
Nov 28, 2022
The resizeMode and tintColor props should be used instead. The styles will be removed in a future release. Fix #2383
necolas
added a commit
that referenced
this issue
Dec 27, 2022
The resizeMode and tintColor props should be used instead. The styles will be removed in a future release. Fix #2383
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Requires extension or creation of new React Native API
has: pr
Subject of a pull request
project:react-native-web
Issue associated with react-native-web
Is there an existing request?
Describe the feature request
Prepare for these non-standard styles to be removed from React Native for Web. There is already a
resizeMode
prop, which should be used instead. And atintColor
prop could be added, although mechanisms for color tinting images on web don't seem to work well in Safari, so the feature could be dropped entirely. Moving these features out ofstyle
will help avoid style deopts on web, and enable static extraction of styles from core components (i.e., avoid usingStyleSheet.flatten
during render).The text was updated successfully, but these errors were encountered: