Procházet zdrojové kódy

Support calling mergeOptions on ExternalComponents

Guy Carmeli před 6 roky
rodič
revize
b1e1ec84ae

+ 7
- 0
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/externalcomponent/ExternalComponentViewController.java Zobrazit soubor

@@ -39,6 +39,13 @@ public class ExternalComponentViewController extends ViewController<ExternalComp
39 39
         }
40 40
     }
41 41
 
42
+    @Override
43
+    public void mergeOptions(Options options) {
44
+        if (options == Options.EMPTY) return;
45
+        performOnParentController(parentController -> parentController.mergeChildOptions(options, this, getView()));
46
+        super.mergeOptions(options);
47
+    }
48
+
42 49
     public FragmentActivity getActivity() {
43 50
         return (FragmentActivity) super.getActivity();
44 51
     }