|
@@ -51,7 +51,7 @@ public class RctActivityModule extends ReactContextBaseJavaModule {
|
51
|
51
|
BridgeUtils.addMapToBundle(((ReadableNativeMap) style).toHashMap(), extras);
|
52
|
52
|
}
|
53
|
53
|
intent.putExtras(extras);
|
54
|
|
-
|
|
54
|
+
|
55
|
55
|
context.startActivity(intent);
|
56
|
56
|
//TODO add abstract isRoot() instead of instanceof?
|
57
|
57
|
if(ContextProvider.getActivityContext() instanceof RootActivity) {
|
|
@@ -106,6 +106,20 @@ public class RctActivityModule extends ReactContextBaseJavaModule {
|
106
|
106
|
});
|
107
|
107
|
}
|
108
|
108
|
|
|
109
|
+ @ReactMethod
|
|
110
|
+ public void setNavigatorTitle(final ReadableMap title) {
|
|
111
|
+ final BaseReactActivity context = ContextProvider.getActivityContext();
|
|
112
|
+ if (context == null || context.isFinishing()) {
|
|
113
|
+ return;
|
|
114
|
+ }
|
|
115
|
+ context.runOnUiThread(new Runnable() {
|
|
116
|
+ @Override
|
|
117
|
+ public void run() {
|
|
118
|
+ context.setNavigationTitle(title);
|
|
119
|
+ }
|
|
120
|
+ });
|
|
121
|
+ }
|
|
122
|
+
|
109
|
123
|
@ReactMethod
|
110
|
124
|
public void navigatorPush(final ReadableMap skreen) {
|
111
|
125
|
final Screen screen = new Screen(skreen);
|