Skip to content

Use ImageURISource for thumb image instead of ImageSource to fix image not loading #714

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 11 commits into
base: main
Choose a base branch
from

Conversation

BartoszKlonowski
Copy link
Member

@BartoszKlonowski BartoszKlonowski commented Jun 5, 2025

This pull request fixes #711

It migrates from ImageSource type from RN to ImageURISource. Those are both from RN and have common props however ImageSource is no longer supported by the v0.79 app (and beyond).

This fix includes both iOS and Android.
Also, all dev deps were updated to make sure we have the recent types used within the package when consumed by the app.

Note:: Removing tests from workflow is temporary due to versions update and tests now failing (some features of React test were used previously).

Comment on lines +226 to +230
img->size.width = newScreenProps.thumbImage.width;
img->size.height = newScreenProps.thumbImage.height;
img->scale = newScreenProps.thumbImage.scale;
img->bundle = newScreenProps.thumbImage.bundle;
img->uri = newScreenProps.thumbImage.uri;
Copy link
Member

Choose a reason for hiding this comment

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

I guess now codegen treats our ImageSource as a custom type so it generates an intermediate representation of it. I wonder if there is a built-in way to handle it 🤔

But it looks good as a fix for now

@Qdafengzi
Copy link

Looking forward to merging into main line release soon, thanks

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.

Unable to add a thumbImage without having a StepMarker
3 participants