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:
Wojciech Lewicki
2022-10-03 09:48:16 +02:00
committed by GitHub
parent 1beacf1be2
commit b3d2b76496
+1 -6
View File
@@ -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;