Browse Source

Moved change in button to JS

Yedidya Kennard 8 years ago
parent
commit
2330d0a340

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/params/parsers/TitleBarButtonParamsParser.java View File

@@ -27,7 +27,7 @@ public class TitleBarButtonParamsParser extends Parser {
27 27
         }
28 28
         result.color = new StyleParams.Color(ColorParser.parse(bundle.getString("color")));
29 29
         result.showAsAction = parseShowAsAction(bundle.getString("showAsAction"));
30
-        result.enabled = !bundle.getBoolean("disabled", false);
30
+        result.enabled = bundle.getBoolean("enabled", true);
31 31
         result.eventId = bundle.getString("id");
32 32
         return result;
33 33
     }

+ 1
- 0
src/deprecated/platformSpecificDeprecated.android.js View File

@@ -266,6 +266,7 @@ function addNavigatorButtons(screen) {
266 266
   const rightButtons = getRightButtons(screen);
267 267
   if (rightButtons) {
268 268
     rightButtons.forEach(function(button) {
269
+      button.enabled = !button.disabled;
269 270
       if (button.icon) {
270 271
         const icon = resolveAssetSource(button.icon);
271 272
         if (icon) {