Skip to content

Conversation

@mCodex
Copy link
Owner

@mCodex mCodex commented Nov 14, 2025

No description provided.

Refactored the autoHeightBridge to enhance content detection and height measurement, including more robust handling of renderable content and element height calculation. Updated dependencies in example/package.json to latest patch versions for expo, react, react-dom, and dev tools. These changes improve reliability and maintain compatibility with the latest ecosystem updates.
Copilot AI review requested due to automatic review settings November 14, 2025 13:10
@mCodex mCodex merged commit 6e4231b into main Nov 14, 2025
4 checks passed
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 fixes the handling of empty HTML tags in the auto-height calculation logic by introducing more sophisticated content detection and refactoring the height measurement system.

Key Changes:

  • Introduced hasRenderableContent function to properly detect empty HTML elements by checking for text content and media elements (images, videos, etc.)
  • Refactored height measurement logic to be more comprehensive and efficient
  • Updated multiple dependencies to their latest patch versions (React 19.1.1, Expo 54.0.23, and related packages)

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/constants/autoHeightBridge.ts Core fix: Added hasRenderableContent function to detect empty HTML tags and refactored height measurement to check multiple element properties and include scrollingElement
package.json Bumped package version to 1.0.14
example/package.json Updated example dependencies to match latest Expo and React versions
yarn.lock Lock file updates reflecting all dependency version changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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