mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 12:41:49 +00:00
feat: remove processColor so the color is parsed on the native side (#1887)
PR fixing the behavior of setting color and tintColor values on SvgView component. Since we added proper annotations and macros on the native side, we don't have to call processColor on the JS side.
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
MeasureLayoutOnSuccessCallback,
|
||||
MeasureOnSuccessCallback,
|
||||
NativeModules,
|
||||
processColor,
|
||||
StyleProp,
|
||||
StyleSheet,
|
||||
ViewProps,
|
||||
@@ -176,11 +175,7 @@ export default class Svg extends Shape<SvgProps> {
|
||||
|
||||
extractResponder(props, props, this as ResponderInstanceProps);
|
||||
|
||||
const tint = processColor(color);
|
||||
if (tint != null) {
|
||||
props.color = tint;
|
||||
props.tintColor = tint;
|
||||
}
|
||||
props.tintColor = color;
|
||||
|
||||
if (onLayout != null) {
|
||||
props.onLayout = onLayout;
|
||||
|
||||
Reference in New Issue
Block a user