Browse Source

Support calling mergeOptions on ExternalComponents

Guy Carmeli 6 years ago
parent
commit
b1e1ec84ae

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

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
     public FragmentActivity getActivity() {
49
     public FragmentActivity getActivity() {
43
         return (FragmentActivity) super.getActivity();
50
         return (FragmentActivity) super.getActivity();
44
     }
51
     }