/**
  * We use this method for getting color for rounded borders only similarly as for {@link
  * #getFullBorderWidth}.
  */
 private int getFullBorderColor() {
   float rgb =
       (mBorderRGB != null && !CSSConstants.isUndefined(mBorderRGB.getRaw(Spacing.ALL)))
           ? mBorderRGB.getRaw(Spacing.ALL)
           : DEFAULT_BORDER_RGB;
   float alpha =
       (mBorderAlpha != null && !CSSConstants.isUndefined(mBorderAlpha.getRaw(Spacing.ALL)))
           ? mBorderAlpha.getRaw(Spacing.ALL)
           : DEFAULT_BORDER_ALPHA;
   return ReactViewBackgroundDrawable.colorFromAlphaAndRGBComponents(alpha, rgb);
 }
  private int getBorderColor(int position) {
    float rgb = mBorderRGB != null ? mBorderRGB.get(position) : DEFAULT_BORDER_RGB;
    float alpha = mBorderAlpha != null ? mBorderAlpha.get(position) : DEFAULT_BORDER_ALPHA;

    return ReactViewBackgroundDrawable.colorFromAlphaAndRGBComponents(alpha, rgb);
  }