Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

How to Render Base64 Encoded Image on React Native

Just use data URI scheme same as you would in html:

const encodedData = 'R0lGODlhAQABAIAAAAAA...7';
<Image source={{uri: `data:image/gif;base64,${encodedData}`}} />
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.