|
@@ -11,12 +11,12 @@ import android.view.Window;
|
11
|
11
|
import android.widget.LinearLayout;
|
12
|
12
|
|
13
|
13
|
import com.facebook.react.ReactInstanceManager;
|
14
|
|
-import com.reactnativenavigation.controllers.ScreenParams;
|
|
14
|
+import com.reactnativenavigation.params.ScreenParams;
|
15
|
15
|
import com.reactnativenavigation.params.ScreenStyleParams;
|
|
16
|
+import com.reactnativenavigation.params.TitleBarButtonParams;
|
16
|
17
|
import com.reactnativenavigation.utils.SdkSupports;
|
17
|
18
|
import com.reactnativenavigation.views.ContentView;
|
18
|
19
|
import com.reactnativenavigation.views.ScrollDirectionListener;
|
19
|
|
-import com.reactnativenavigation.views.TitleBarButton;
|
20
|
20
|
|
21
|
21
|
import java.util.List;
|
22
|
22
|
|
|
@@ -26,16 +26,16 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
|
26
|
26
|
public class ScreenLayout extends LinearLayout implements ScrollDirectionListener.OnScrollChanged {
|
27
|
27
|
|
28
|
28
|
private final ReactInstanceManager reactInstanceManager;
|
29
|
|
- private final String moduleName;
|
|
29
|
+ private final String screenId;
|
30
|
30
|
private final Bundle passProps;
|
31
|
|
- private final List<TitleBarButton.Params> buttons;
|
|
31
|
+ private final List<TitleBarButtonParams> buttons;
|
32
|
32
|
private ContentView contentView;
|
33
|
33
|
private TopBar topBar;
|
34
|
34
|
|
35
|
35
|
public ScreenLayout(Context context, ReactInstanceManager reactInstanceManager, ScreenParams screenParams) {
|
36
|
36
|
super(context);
|
37
|
37
|
this.reactInstanceManager = reactInstanceManager;
|
38
|
|
- moduleName = screenParams.moduleName;
|
|
38
|
+ screenId = screenParams.screenId;
|
39
|
39
|
passProps = screenParams.passProps;
|
40
|
40
|
buttons = screenParams.buttons;
|
41
|
41
|
setOrientation(VERTICAL);
|
|
@@ -56,7 +56,7 @@ public class ScreenLayout extends LinearLayout implements ScrollDirectionListene
|
56
|
56
|
}
|
57
|
57
|
|
58
|
58
|
private void addContentView() {
|
59
|
|
- contentView = new ContentView(getContext(), reactInstanceManager, moduleName, passProps, this);
|
|
59
|
+ contentView = new ContentView(getContext(), reactInstanceManager, screenId, passProps, this);
|
60
|
60
|
addView(contentView, new LayoutParams(MATCH_PARENT, MATCH_PARENT));
|
61
|
61
|
}
|
62
|
62
|
|