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 9, 2026 6:03pm

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.

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