|
@@ -2,7 +2,6 @@ package com.reactnativenavigation.controllers;
|
2
|
2
|
|
3
|
3
|
import android.app.Activity;
|
4
|
4
|
import android.content.Intent;
|
5
|
|
-import android.graphics.Color;
|
6
|
5
|
import android.os.Bundle;
|
7
|
6
|
import android.support.v7.app.AppCompatActivity;
|
8
|
7
|
import android.view.KeyEvent;
|
|
@@ -16,7 +15,6 @@ import com.reactnativenavigation.layouts.ScreenLayout;
|
16
|
15
|
import com.reactnativenavigation.react.JsDevReloadHandler;
|
17
|
16
|
import com.reactnativenavigation.react.NavigationReactInstance;
|
18
|
17
|
import com.reactnativenavigation.react.RedboxPermission;
|
19
|
|
-import com.reactnativenavigation.views.TitleBarButton;
|
20
|
18
|
|
21
|
19
|
import java.util.Arrays;
|
22
|
20
|
import java.util.List;
|
|
@@ -61,8 +59,7 @@ public class NavigationActivity extends AppCompatActivity implements NavigationR
|
61
|
59
|
}
|
62
|
60
|
|
63
|
61
|
private void createLayout() {
|
64
|
|
- List<TitleBarButton.Params> btns = Arrays.asList(new TitleBarButton.Params("btn1", getResources().getDrawable(android.R.drawable.ic_media_play), Color.RED, TitleBarButton.Params.ShowAsAction.Always));
|
65
|
|
- ScreenLayout.Params screenParams = new ScreenLayout.Params("v2.0", new Bundle(), btns);
|
|
62
|
+ ScreenParams screenParams = new ScreenParams();
|
66
|
63
|
ScreenLayout screenLayout = new ScreenLayout(this, navigationReactInstance.getReactInstanceManager(), screenParams);
|
67
|
64
|
setContentView(screenLayout);
|
68
|
65
|
}
|