|
@@ -24,6 +24,7 @@ import com.reactnativenavigation.viewcontrollers.externalcomponent.ExternalCompo
|
24
|
24
|
|
25
|
25
|
import org.json.JSONObject;
|
26
|
26
|
|
|
27
|
+import java.util.HashMap;
|
27
|
28
|
import java.util.Map;
|
28
|
29
|
|
29
|
30
|
public class NavigationModule extends ReactContextBaseJavaModule {
|
|
@@ -45,6 +46,13 @@ public class NavigationModule extends ReactContextBaseJavaModule {
|
45
|
46
|
return NAME;
|
46
|
47
|
}
|
47
|
48
|
|
|
49
|
+ @Override
|
|
50
|
+ public Map<String, Object> getConstants() {
|
|
51
|
+ final Map<String, Object> constants = new HashMap<>();
|
|
52
|
+ constants.put(Constants.BACK_BUTTON_JS_KEY, Constants.BACK_BUTTON_ID);
|
|
53
|
+ return constants;
|
|
54
|
+ }
|
|
55
|
+
|
48
|
56
|
@ReactMethod
|
49
|
57
|
public void setRoot(String commandId, ReadableMap rawLayoutTree, Promise promise) {
|
50
|
58
|
final LayoutNode layoutTree = LayoutNodeParser.parse(new JSONObject(rawLayoutTree.toHashMap()));
|