ソースを参照

Add a toString implementation to StyleParams Color (#2313)

Yedidya Kennard 7 年 前
コミット
7b429da6c6
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5
    0
      android/app/src/main/java/com/reactnativenavigation/params/StyleParams.java

+ 5
- 0
android/app/src/main/java/com/reactnativenavigation/params/StyleParams.java ファイルの表示

@@ -48,6 +48,11 @@ public class StyleParams {
48 48
         public int getColor(int defaultColor) {
49 49
             return hasColor() ? getColor() : defaultColor;
50 50
         }
51
+
52
+        @Override
53
+        public String toString() {
54
+            return this.getHexColor();
55
+        }
51 56
     }
52 57
 
53 58
     public static class Font {