Skip to content

Commit

Permalink
refactor: colors
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyihou committed Apr 16, 2024
1 parent 1bd5d1e commit bd36946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions android/src/main/java/com/gradient/GradientViewManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ class GradientViewManager : SimpleViewManager<View>() {
@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))
}
}
}

0 comments on commit bd36946

Please sign in to comment.