Today I Learned

hashrocket A Hashrocket project

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}`}} />
See More #react TILs
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.