Browse Source

Fix null buttons

Guy Carmeli 8 years ago
parent
commit
648fabe6e3
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

@@ -290,7 +290,7 @@ function addNavigatorButtons(screen) {
290 290
 }
291 291
 
292 292
 function getLeftButton(screen) {
293
-  if (screen.navigatorButtons) {
293
+  if (screen.navigatorButtons && screen.navigatorButtons.leftButton) {
294 294
     return screen.navigatorButtons.leftButton;
295 295
   }
296 296
 
@@ -298,7 +298,7 @@ function getLeftButton(screen) {
298 298
 }
299 299
 
300 300
 function getRightButtons(screen) {
301
-  if (screen.navigatorButtons) {
301
+  if (screen.navigatorButtons && screen.navigatorButtons.rightButtons) {
302 302
     return screen.navigatorButtons.rightButtons;
303 303
   }
304 304