Browse Source

Add a toString implementation to StyleParams Color (#2313)

Yedidya Kennard 7 years ago
parent
commit
7b429da6c6

+ 5
- 0
android/app/src/main/java/com/reactnativenavigation/params/StyleParams.java View File

@@ -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 {