Skip to content

fix: custom modules image not showing on ios prod#139

Merged
joe-goodall-ticketmaster merged 1 commit into
mainfrom
fix-custom-module-images-
May 28, 2026
Merged

fix: custom modules image not showing on ios prod#139
joe-goodall-ticketmaster merged 1 commit into
mainfrom
fix-custom-module-images-

Conversation

@joe-goodall-ticketmaster

@joe-goodall-ticketmaster joe-goodall-ticketmaster commented May 28, 2026

Copy link
Copy Markdown
Collaborator

The header image passed via customModules.headerView.image to IgniteProvider doesn't render on iOS release builds. It works in debug and on Android.

The SDK's RCTNativeConfig.getImage: strips the file:// prefix with a string slice and passes the result to UIImage imageWithContentsOfFile: — which takes a filesystem path, not a URL, and does not percent-decode. On release, expo-updates serves the asset from Library/Application Support/.expo-internal/..., so the URI contains %20 for the space in "Application Support". The encoded space survives the strip and the file lookup fails.

This parses the value as an NSURL and use dataWithContentsOfURL: for any URL with a scheme, letting Foundation handle decoding. Bare filesystem paths still fall through to imageWithContentsOfFile:.

@DanielOS7-TM DanielOS7-TM self-requested a review May 28, 2026 11:59
@joe-goodall-ticketmaster joe-goodall-ticketmaster merged commit fd8c5b4 into main May 28, 2026
6 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.

2 participants