Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
import android.animation.Animator;
import android.app.Activity;
import android.content.res.Configuration;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.graphics.Insets;
import androidx.core.view.WindowInsetsCompat;

import com.aurelhubert.ahbottomnavigation.AHBottomNavigation;
import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem;
Expand Down Expand Up @@ -108,7 +105,6 @@ public BottomTabsLayout createView() {
bottomTabs.addItems(createTabs());
setInitialTab(resolveCurrentOptions);
tabsAttacher.attach();

return root;
}

Expand Down Expand Up @@ -313,14 +309,6 @@ public Animator getPopAnimation(Options appearingOptions, Options disappearingOp
return presenter.getPopAnimation(appearingOptions, disappearingOptions);
}

@Override
protected WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat insets) {
Insets sysInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars());
view.setPaddingRelative(0, 0, 0, sysInsets.bottom);
return WindowInsetsCompat.CONSUMED;
}


@RestrictTo(RestrictTo.Scope.TESTS)
public BottomTabs getBottomTabs() {
return bottomTabs;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-navigation",
"version": "7.50.0",
"version": "7.51.0-rc.1",
"description": "React Native Navigation - truly native navigation for iOS and Android",
"license": "MIT",
"nativePackage": true,
Expand Down
12 changes: 8 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,14 @@ function updatePackageJsonGit(version) {
}

function draftGitRelease(version) {
exec.execSync(`npx gren release --tags=${version}`);
exec.execSync(`sleep 30`);
// For some unknown reason, gren release works well only when calling it twice.
exec.execSync(`npx gren release --tags=${version}`);
try {
exec.execSync(`npx gren release --tags="${version}"`);
exec.execSync(`sleep 30`);
// For some unknown reason, gren release works well only when calling it twice.
exec.execSync(`npx gren release --tags="${version}"`);
} catch (err) {
console.warn('Failed to create a GitHub release draft ==> skipping', err);
}
}

run();