Skip to content

Conversation

@V3RON
Copy link
Contributor

@V3RON V3RON commented Feb 8, 2026

This pull request adjusts the default fallback logic for missing images on both iOS and Android, allowing you to provide your own fallback via 'fallbackColor' and 'fallback' props.

@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voltra Ready Ready Preview, Comment Feb 10, 2026 7:37am

Request Review

@Angelk90
Copy link

Angelk90 commented Feb 8, 2026

@V3RON :

  1. If fallbackColor or fbc is used it is possible to set a border smoothing, when using a Background.
<Image source={{ assetName: 'x' }} fallbackColor="#E0E0E0"
style={{
   width: 100,
   height: 100,
   borderRadius: 16
   //borderTopLeftRadius: 4, 
   //borderTopRightRadius: 4,
   //borderBottomLeftRadius: 0,
   //borderBottomRightRadius: 0,
}} />
  1. You can do something like this:
<Image source={{ assetName: 'x' }} fallback={
   <Image source={{ assetName: 'y' }} fallback={<Text>Missing</Text>} />
} />

@V3RON
Copy link
Contributor Author

V3RON commented Feb 9, 2026

@V3RON :

  1. If fallbackColor or fbc is used it is possible to set a border smoothing, when using a Background.
<Image source={{ assetName: 'x' }} fallbackColor="#E0E0E0"
style={{
   width: 100,
   height: 100,
   borderRadius: 16
   //borderTopLeftRadius: 4, 
   //borderTopRightRadius: 4,
   //borderBottomLeftRadius: 0,
   //borderBottomRightRadius: 0,
}} />
  1. You can do something like this:
<Image source={{ assetName: 'x' }} fallback={
   <Image source={{ assetName: 'y' }} fallback={<Text>Missing</Text>} />
} />

Updated. No 'fallbackColor'. The fallback will simply inherit from Image itself.

@V3RON V3RON merged commit 04618e5 into main Feb 10, 2026
4 of 6 checks passed
@V3RON V3RON deleted the feat/image-fallback branch February 10, 2026 08:42
@Angelk90
Copy link

@V3RON : Much better, if no image is found and there is no fallback, what should it display?
Some message error or a colored default image?

If both flb and fallback are used, which one takes precedence?

<Image source={{ assetName: 'x' }} fallback={..} flb={...} />

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