Skip to content

feat(android): add bottom tab bar height property #2328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pakerwreah
Copy link

@pakerwreah pakerwreah commented Jun 13, 2025

Motivation

Add a new property to fix extra padding below text input on android when the bottom sheet is inside a stack that contains a bottom tab bar.

The provided value usually comes from @react-navigation/bottom-tabs hook useBottomTabBarHeight.

Before the feature proposed on this PR, I had to dynamically change bottomInset based on the keyboard state, which was causing the bottom sheet to randomly close instead of collapsing, and also performance issues due to state change during animation.

Tests

  • Works as expected with and without a bottom tab bar
  • Continues to work nice on iOS (we ignore the value)

Screenshots

Collapsed Issue (extra padding) Fixed
collapsed extra-padding expected

@pakerwreah pakerwreah changed the title [Android] add bottom tab bar height property feat(android): add bottom tab bar height property Jun 13, 2025
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@pakerwreah
Copy link
Author

not stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant