Skip to content

Conversation

@okwasniewski
Copy link
Member

PR Description

This PR implements measuring of custom tab bar so it's properly returned in useBottomTabBarHeight().

How to test?

Check if useBottomTabBarHeight is not 0 if passed a custom tab bar.

@changeset-bot
Copy link

changeset-bot bot commented May 31, 2025

⚠️ No Changeset found

Latest commit: 4fc116b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@okwasniewski okwasniewski requested a review from Copilot May 31, 2025 19:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements custom tab bar height measurement to ensure that useBottomTabBarHeight returns the correct value when a custom tab bar is provided.

  • Adds a ref (customTabBarWrapperRef) and a useLayoutEffect hook to measure the tab bar height.
  • Wraps the custom tab bar rendering in a View with the ref to facilitate measurement.

@okwasniewski okwasniewski force-pushed the feat/measure-custom-tab-bar branch from 4fc116b to d6f05c5 Compare May 31, 2025 19:39
@okwasniewski okwasniewski merged commit 18a8d23 into main May 31, 2025
7 checks passed
@okwasniewski okwasniewski deleted the feat/measure-custom-tab-bar branch May 31, 2025 19:52
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.

2 participants