Skip to content

fix(ios): fix blurhash view empty on new arch bridgeless#205

Merged
mrousavy merged 1 commit into
mrousavy:masterfrom
hannojg:hannijg/fix-ios-empty
Aug 8, 2025
Merged

fix(ios): fix blurhash view empty on new arch bridgeless#205
mrousavy merged 1 commit into
mrousavy:masterfrom
hannojg:hannijg/fix-ios-empty

Conversation

@hannojg

@hannojg hannojg commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

On iOS I had the issue that a view would not show the blur hash.
The problem is that on new arch this component is rendered through the legacy interop layer which

  1. Doesn't set the frame on init
  2. Doesn't call reactSetFrame

I fixed this by updating the blurhash's frame on layoutSubviews

Reproduction:

export default function App() {
  return (
    <Blurhash blurhash="LGFFaXYk^6#M@-5c,1J5@[or[Q6." style={{ flex: 1 }} />
  );
}
Before After
IMG_9D21CB223A44-1 IMG_2234

@anultravioletaurora

Copy link
Copy Markdown

Thank you for this!!

I had been wondering why this wasn't working for me 😅

@mrousavy mrousavy merged commit 5121551 into mrousavy:master Aug 8, 2025
2 of 5 checks passed
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.

3 participants