Browse Source

Return rightButtons instead of navigatorButtons (#688)

Guy Carmeli 8 years ago
parent
commit
9b618b2368
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 2
src/deprecated/platformSpecificDeprecated.android.js View File

@@ -521,8 +521,8 @@ function getRightButtons(screen) {
521 521
 
522 522
   const Screen = Navigation.getRegisteredScreen(screen.screen);
523 523
 
524
-  if (Screen.navigatorButtons && !_.isEmpty(Screen.navigatorButtons)) {
525
-    return _.cloneDeep(Screen.navigatorButtons);
524
+  if (Screen.navigatorButtons && !_.isEmpty(Screen.navigatorButtons.rightButtons)) {
525
+    return _.cloneDeep(Screen.navigatorButtons.rightButtons);
526 526
   }
527 527
 
528 528
   return null;