5

I'm using a cloud based storage for avatar images. If an image for a user doesn't exist I want to fallback to the user title.The code below works for android, but on IOS the image is just blank and no title.

<Avatar rounded source={{ uri: avatarUrl }} title={userName.slice(0, 2)} />

On a regular Image you can use onError to handle this, but I don't see how I can use this on the Avatar.

Anyone have any suggestions how to fix this? or another package that handles it better?

Thanks!

Haze
  • 333
  • 1
  • 3
  • 6

0 Answers0