Преглед на файлове

Setup devSupportHandler only in debug

Guy Carmeli преди 8 години
родител
ревизия
2db8eeb1cf
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3
    2
      android/app/src/main/java/com/reactnativenavigation/core/RctManager.java

+ 3
- 2
android/app/src/main/java/com/reactnativenavigation/core/RctManager.java Целия файл

@@ -75,8 +75,9 @@ public class RctManager {
75 75
         }
76 76
 
77 77
         mReactManager = builder.build();
78
-        setupDevSupportHandler(mReactManager);
79
-
78
+        if (reactActivity.getUseDeveloperSupport()) {
79
+            setupDevSupportHandler(mReactManager);
80
+        }
80 81
         return mReactManager;
81 82
     }
82 83