|
@@ -18,6 +18,7 @@ import com.reactnativenavigation.utils.NativeCommandListener;
|
18
|
18
|
import com.reactnativenavigation.utils.Now;
|
19
|
19
|
import com.reactnativenavigation.utils.TypefaceLoader;
|
20
|
20
|
import com.reactnativenavigation.utils.UiThread;
|
|
21
|
+import com.reactnativenavigation.utils.UiUtils;
|
21
|
22
|
import com.reactnativenavigation.viewcontrollers.Navigator;
|
22
|
23
|
import com.reactnativenavigation.viewcontrollers.ViewController;
|
23
|
24
|
import com.reactnativenavigation.viewcontrollers.externalcomponent.ExternalComponentCreator;
|
|
@@ -50,6 +51,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
|
50
|
51
|
public Map<String, Object> getConstants() {
|
51
|
52
|
final Map<String, Object> constants = new HashMap<>();
|
52
|
53
|
constants.put(Constants.BACK_BUTTON_JS_KEY, Constants.BACK_BUTTON_ID);
|
|
54
|
+ constants.put(Constants.STATUS_BAR_HEIGHT_KEY, UiUtils.getStatusBarHeight(getReactApplicationContext()));
|
53
|
55
|
return constants;
|
54
|
56
|
}
|
55
|
57
|
|