In react-native, converting an image to BASE64 format is easy, with a little help of react-native-fetch-blob, I simply do:
RNFetchBlob.fs.readFile(filePath, 'base64')
.then((data) => console.log(data));
But, what about the other way around? I know there are some packages out there that does it, but I wonder if it's possible to do it with only react-native-fetch-blob or react-native-fs?
What I want is that after converting and saving the BASE64 image to a file, I am able to display it like this:
<Image
source={{ uri: <path/to/converted/image> }}
style={{ ... }}
/>