diff --git a/android/src/main/java/com/gradient/GradientViewManager.kt b/android/src/main/java/com/gradient/GradientViewManager.kt index 1a5f397..1ef9bbe 100644 --- a/android/src/main/java/com/gradient/GradientViewManager.kt +++ b/android/src/main/java/com/gradient/GradientViewManager.kt @@ -39,8 +39,7 @@ class GradientViewManager : SimpleViewManager() { @ReactProp(name = "colors") fun setColors(view: View, colors: ReadableArray) { this.colors = colors.toArrayList().map { - val colorValue = ColorPropConverter.getColor(it, view.context) - Color(colorValue) + Color(ColorPropConverter.getColor(it, view.context)) } } }