react-native-navigation 7.51.0-rc.2 → 7.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,11 +7,14 @@ import static com.reactnativenavigation.utils.ObjectUtils.perform;
|
|
|
7
7
|
import android.animation.Animator;
|
|
8
8
|
import android.app.Activity;
|
|
9
9
|
import android.content.res.Configuration;
|
|
10
|
+
import android.view.View;
|
|
10
11
|
import android.view.ViewGroup;
|
|
11
12
|
|
|
12
13
|
import androidx.annotation.NonNull;
|
|
13
14
|
import androidx.annotation.RestrictTo;
|
|
14
15
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
16
|
+
import androidx.core.graphics.Insets;
|
|
17
|
+
import androidx.core.view.WindowInsetsCompat;
|
|
15
18
|
|
|
16
19
|
import com.aurelhubert.ahbottomnavigation.AHBottomNavigation;
|
|
17
20
|
import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem;
|
|
@@ -105,6 +108,7 @@ public class BottomTabsController extends ParentController<BottomTabsLayout> imp
|
|
|
105
108
|
bottomTabs.addItems(createTabs());
|
|
106
109
|
setInitialTab(resolveCurrentOptions);
|
|
107
110
|
tabsAttacher.attach();
|
|
111
|
+
|
|
108
112
|
return root;
|
|
109
113
|
}
|
|
110
114
|
|
|
@@ -309,6 +313,16 @@ public class BottomTabsController extends ParentController<BottomTabsLayout> imp
|
|
|
309
313
|
return presenter.getPopAnimation(appearingOptions, disappearingOptions);
|
|
310
314
|
}
|
|
311
315
|
|
|
316
|
+
@Override
|
|
317
|
+
protected WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat insets) {
|
|
318
|
+
Insets sysInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
|
319
|
+
Insets imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime());
|
|
320
|
+
|
|
321
|
+
int bottomInset = (imeInsets.bottom > 0) ? 0 : sysInsets.bottom;
|
|
322
|
+
view.setPaddingRelative(0, 0, 0, bottomInset);
|
|
323
|
+
return insets;
|
|
324
|
+
}
|
|
325
|
+
|
|
312
326
|
@RestrictTo(RestrictTo.Scope.TESTS)
|
|
313
327
|
public BottomTabs getBottomTabs() {
|
|
314
328
|
return bottomTabs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-navigation",
|
|
3
|
-
"version": "7.51.
|
|
3
|
+
"version": "7.51.1",
|
|
4
4
|
"description": "React Native Navigation - truly native navigation for iOS and Android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"nativePackage": true,
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"emulator": {
|
|
169
169
|
"type": "android.emulator",
|
|
170
170
|
"device": {
|
|
171
|
-
"avdName": "
|
|
171
|
+
"avdName": "Pixel_API_29"
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
},
|