瀏覽代碼

Fix button disabled color has no effect on Android

Both right and left buttonDisabledColor were not parsed on Android.
Guy Carmeli 5 年之前
父節點
當前提交
b66ff1d4b6
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      lib/android/app/src/main/java/com/reactnativenavigation/parse/TopBarOptions.java

+ 2
- 0
lib/android/app/src/main/java/com/reactnativenavigation/parse/TopBarOptions.java 查看文件

46
 
46
 
47
         options.rightButtonColor = ColorParser.parse(json, "rightButtonColor");
47
         options.rightButtonColor = ColorParser.parse(json, "rightButtonColor");
48
         options.leftButtonColor = ColorParser.parse(json, "leftButtonColor");
48
         options.leftButtonColor = ColorParser.parse(json, "leftButtonColor");
49
+        options.leftButtonDisabledColor = ColorParser.parse(json, "leftButtonDisabledColor");
50
+        options.rightButtonDisabledColor = ColorParser.parse(json, "rightButtonDisabledColor");
49
 
51
 
50
         options.validate();
52
         options.validate();
51
         return options;
53
         return options;