react-native-navigation 8.2.2-snapshot.1828 → 8.3.0
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.
|
@@ -316,10 +316,12 @@ public class BottomTabsController extends ParentController<BottomTabsLayout> imp
|
|
|
316
316
|
@Override
|
|
317
317
|
protected WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat insets) {
|
|
318
318
|
Insets sysInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
|
319
|
-
|
|
320
|
-
return WindowInsetsCompat.CONSUMED;
|
|
321
|
-
}
|
|
319
|
+
Insets imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime());
|
|
322
320
|
|
|
321
|
+
int bottomInset = (imeInsets.bottom > 0) ? 0 : sysInsets.bottom;
|
|
322
|
+
view.setPaddingRelative(0, 0, 0, bottomInset);
|
|
323
|
+
return insets;
|
|
324
|
+
}
|
|
323
325
|
|
|
324
326
|
@RestrictTo(RestrictTo.Scope.TESTS)
|
|
325
327
|
public BottomTabs getBottomTabs() {
|