I created a social media app with expo\'s react native, and wanted to add the ability to upload images. Since expo won\'t let you convert
You can do this:
var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANS...';
In the base64Icon variable you need to put your base64 data after data:image/png;base64,. Like this:
base64Icon
data:image/png;base64,
var base64Icon = 'data:image/png;base64,{PLACE_YOUR_BASE64_DATA_HERE}';