Browse Source

Android: Use proper key for bottom tab height (#4328)

Krzysztof Borowy 6 years ago
parent
commit
3b98553273

+ 1
- 1
lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java View File

@@ -53,7 +53,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
53 53
         ReactApplicationContext ctx = getReactApplicationContext();
54 54
         WritableMap constants = Arguments.createMap();
55 55
         constants.putString(Constants.BACK_BUTTON_JS_KEY,    Constants.BACK_BUTTON_ID);
56
-        constants.putDouble(Constants.TOP_BAR_HEIGHT_KEY,    Constants.BOTTOM_TABS_HEIGHT);
56
+        constants.putDouble(Constants.BOTTOM_TABS_HEIGHT_KEY,    Constants.BOTTOM_TABS_HEIGHT);
57 57
         constants.putDouble(Constants.STATUS_BAR_HEIGHT_KEY, UiUtils.pxToDp(ctx, UiUtils.getStatusBarHeight(ctx)));
58 58
         constants.putDouble(Constants.TOP_BAR_HEIGHT_KEY,    UiUtils.pxToDp(ctx, UiUtils.getTopBarHeight(ctx)));
59 59
         promise.resolve(constants);