|
@@ -5,7 +5,7 @@ import com.reactnativenavigation.parse.NavigationOptions;
|
5
|
5
|
import com.reactnativenavigation.parse.TopBarOptions;
|
6
|
6
|
import com.reactnativenavigation.parse.TopTabOptions;
|
7
|
7
|
import com.reactnativenavigation.parse.TopTabsOptions;
|
8
|
|
-import com.reactnativenavigation.views.Container;
|
|
8
|
+import com.reactnativenavigation.views.Component;
|
9
|
9
|
import com.reactnativenavigation.views.TopBar;
|
10
|
10
|
|
11
|
11
|
import java.util.ArrayList;
|
|
@@ -15,12 +15,12 @@ import static com.reactnativenavigation.parse.NavigationOptions.BooleanOptions.T
|
15
|
15
|
|
16
|
16
|
public class OptionsPresenter {
|
17
|
17
|
|
18
|
|
- private Container reactContainer;
|
|
18
|
+ private Component reactComponent;
|
19
|
19
|
private TopBar topBar;
|
20
|
20
|
|
21
|
|
- public OptionsPresenter(Container reactContainer) {
|
22
|
|
- this.reactContainer = reactContainer;
|
23
|
|
- this.topBar = reactContainer.getTopBar();
|
|
21
|
+ public OptionsPresenter(Component reactComponent) {
|
|
22
|
+ this.reactComponent = reactComponent;
|
|
23
|
+ this.topBar = reactComponent.getTopBar();
|
24
|
24
|
}
|
25
|
25
|
|
26
|
26
|
public void applyOptions(NavigationOptions options) {
|
|
@@ -44,9 +44,9 @@ public class OptionsPresenter {
|
44
|
44
|
topBar.show(options.animateHide);
|
45
|
45
|
}
|
46
|
46
|
if (options.drawBehind == True) {
|
47
|
|
- reactContainer.drawBehindTopBar();
|
|
47
|
+ reactComponent.drawBehindTopBar();
|
48
|
48
|
} else if (options.drawBehind == False) {
|
49
|
|
- reactContainer.drawBelowTopBar();
|
|
49
|
+ reactComponent.drawBelowTopBar();
|
50
|
50
|
}
|
51
|
51
|
|
52
|
52
|
if (options.hideOnScroll == True) {
|