'React-Native loading android contact images

I have an image URI that looks like this: content://com.android.contacts/contacts/3992/photo.jpg

I then use that URI as such

<Image source={{uri: contact.thumbnailPath}} style={styles.thumbnail} />

However, I can't see the picture! Any idea what the issue might be?



Solution 1:[1]

you just need to ask width and height to make it worked. <Image source={{uri: contact.thumbnailPath}}, width:48,height:48 />

Solution 2:[2]

Instead of passing a source prop use a simple HTML property src

src={contact.thumbnailPath}

Here thumbnailPath is your image path.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user3003797
Solution 2 Aj Sharma