|
@@ -5,6 +5,7 @@ import android.os.Bundle;
|
5
|
5
|
import android.widget.LinearLayout;
|
6
|
6
|
|
7
|
7
|
import com.facebook.react.ReactInstanceManager;
|
|
8
|
+import com.reactnativenavigation.controllers.ScreenParams;
|
8
|
9
|
import com.reactnativenavigation.views.TitleBarButton;
|
9
|
10
|
import com.reactnativenavigation.views.ContentView;
|
10
|
11
|
import com.reactnativenavigation.views.ScrollDirectionListener;
|
|
@@ -17,18 +18,6 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
|
17
|
18
|
|
18
|
19
|
public class ScreenLayout extends LinearLayout implements ScrollDirectionListener.OnScrollChanged {
|
19
|
20
|
|
20
|
|
- public static class Params {
|
21
|
|
- private final String moduleName;
|
22
|
|
- private final Bundle passProps;
|
23
|
|
- private final List<TitleBarButton.Params> buttons;
|
24
|
|
-
|
25
|
|
- public Params(String moduleName, Bundle passProps, List<TitleBarButton.Params> buttons) {
|
26
|
|
- this.moduleName = moduleName;
|
27
|
|
- this.passProps = passProps;
|
28
|
|
- this.buttons = buttons;
|
29
|
|
- }
|
30
|
|
- }
|
31
|
|
-
|
32
|
21
|
private final ReactInstanceManager reactInstanceManager;
|
33
|
22
|
private final String moduleName;
|
34
|
23
|
private final Bundle passProps;
|
|
@@ -36,7 +25,7 @@ public class ScreenLayout extends LinearLayout implements ScrollDirectionListene
|
36
|
25
|
private ContentView contentView;
|
37
|
26
|
private TopBar topBar;
|
38
|
27
|
|
39
|
|
- public ScreenLayout(Context context, ReactInstanceManager reactInstanceManager, Params screenParams) {
|
|
28
|
+ public ScreenLayout(Context context, ReactInstanceManager reactInstanceManager, ScreenParams screenParams) {
|
40
|
29
|
super(context);
|
41
|
30
|
this.reactInstanceManager = reactInstanceManager;
|
42
|
31
|
moduleName = screenParams.moduleName;
|