Skip to content

Conversation

@hannojg
Copy link
Contributor

@hannojg hannojg commented Jan 19, 2026

Summary:

This enables the Image defaultSource prop example for android.

In debug builds we have to use a bundled image, as we just try to resolve it from the app's resources:

public fun setDefaultSource(name: String?) {
val newDefaultDrawable = ResourceDrawableIdHelper.getResourceDrawable(context, name)

The rational for this one is that i am experiencing a bug with defaultSource on android and this example is helping in the following PRs:

Changelog:

[Internal] - RNTester app android enable Image defaultSource prop example

Test Plan:

Tested in tester app.

Debug:

Screen.Recording.2026-01-19.at.18.41.58.mov

Release:

Screen.Recording.2026-01-19.at.18.48.03.mov

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 19, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jan 19, 2026
@hannojg hannojg force-pushed the example/show-default-image-for-android branch from 3962ed7 to 75770cd Compare January 19, 2026 18:44
@meta-codesync
Copy link

meta-codesync bot commented Jan 20, 2026

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D91027357.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants