Download Images from URL using React Native and theta-client

After spending more time with react-native-blob-util, I was able to save an image to the application storage on iOS.

const remoteImageUrl='https://fake-theta.vercel.app/files/150100525831424d42075b53ce68c300/100RICOH/R0010015.JPG';

const getSampleImage = async () => {
  await ReactNativeBlobUtil.config({
    fileCache: true,
    appendExt: 'jpg',
  }).fetch('GET', remoteImageUrl).then((res) => {
    let status = res.info().status;
    console.log();
    console.log('status: ' + status);
    if (status == 200) {

To focus more on ReactNativeBlobUtil, I’m not using theta-client in this example, just fake-theta.