|
@@ -11,6 +11,7 @@ import com.reactnativenavigation.params.AppStyle;
|
11
|
11
|
import com.reactnativenavigation.params.ScreenParams;
|
12
|
12
|
import com.reactnativenavigation.params.StyleParams;
|
13
|
13
|
import com.reactnativenavigation.utils.ViewUtils;
|
|
14
|
+import com.reactnativenavigation.views.utils.Constants;
|
14
|
15
|
|
15
|
16
|
import java.util.List;
|
16
|
17
|
|
|
@@ -100,14 +101,9 @@ public class BottomTabs extends AHBottomNavigation {
|
100
|
101
|
}
|
101
|
102
|
|
102
|
103
|
private void createVisibilityAnimator() {
|
103
|
|
- ViewUtils.runOnPreDraw(this, new Runnable() {
|
104
|
|
- @Override
|
105
|
|
- public void run() {
|
106
|
|
- visibilityAnimator = new VisibilityAnimator(BottomTabs.this,
|
107
|
|
- VisibilityAnimator.HideDirection.Down,
|
108
|
|
- getHeight());
|
109
|
|
- }
|
110
|
|
- });
|
|
104
|
+ visibilityAnimator = new VisibilityAnimator(BottomTabs.this,
|
|
105
|
+ VisibilityAnimator.HideDirection.Down,
|
|
106
|
+ (int) ViewUtils.convertDpToPixel(Constants.BOTTOM_TABS_HEIGHT));
|
111
|
107
|
}
|
112
|
108
|
|
113
|
109
|
private void setStyle() {
|