|
@@ -4,10 +4,12 @@ import android.app.Activity;
|
4
|
4
|
import android.support.annotation.NonNull;
|
5
|
5
|
import android.view.View;
|
6
|
6
|
|
|
7
|
+import com.reactnativenavigation.parse.NavigationOptions;
|
|
8
|
+
|
7
|
9
|
public class ContainerViewController extends ViewController {
|
8
|
10
|
|
9
|
11
|
public interface ContainerViewCreator {
|
10
|
|
- ContainerView create(Activity activity, String containerName, String containerId);
|
|
12
|
+ ContainerView create(Activity activity, String containerId, String containerName);
|
11
|
13
|
}
|
12
|
14
|
|
13
|
15
|
public interface ContainerView {
|
|
@@ -24,15 +26,19 @@ public class ContainerViewController extends ViewController {
|
24
|
26
|
|
25
|
27
|
private final String containerName;
|
26
|
28
|
private final ContainerViewCreator viewCreator;
|
|
29
|
+ private final NavigationOptions initialNavigationOptions;
|
|
30
|
+
|
27
|
31
|
private ContainerView containerView;
|
28
|
32
|
|
29
|
33
|
public ContainerViewController(final Activity activity,
|
30
|
34
|
final String id,
|
31
|
35
|
final String containerName,
|
32
|
|
- final ContainerViewCreator viewCreator) {
|
|
36
|
+ final ContainerViewCreator viewCreator,
|
|
37
|
+ final NavigationOptions initialNavigationOptions) {
|
33
|
38
|
super(activity, id);
|
34
|
39
|
this.containerName = containerName;
|
35
|
40
|
this.viewCreator = viewCreator;
|
|
41
|
+ this.initialNavigationOptions = initialNavigationOptions;
|
36
|
42
|
}
|
37
|
43
|
|
38
|
44
|
@Override
|
|
@@ -62,7 +68,7 @@ public class ContainerViewController extends ViewController {
|
62
|
68
|
@NonNull
|
63
|
69
|
@Override
|
64
|
70
|
protected View createView() {
|
65
|
|
- containerView = viewCreator.create(getActivity(), containerName, getId());
|
|
71
|
+ containerView = viewCreator.create(getActivity(), getId(), containerName);
|
66
|
72
|
return containerView.asView();
|
67
|
73
|
}
|
68
|
74
|
}
|