title: Save captured image from camera to custom folder react native
body: <p>So I am creating a simple camera app using react-native. For camera component I am using <code>react-native-camera</code> package. So far I am able to capture a photo and save it into DCIM folder using react-native CameraRoll Api <code>CameraRoll.saveToCameraRoll</code>, but I want to save it in another folder like <code>DCIM/CameraApp</code> or in <code>Pictures</code> folder. To achieve this I am using <code>RNFetchBlob</code> package. I have tried a few ways to create a new file from the uri that is returned by <code>this.camera.takePictureAsync</code> but it throws error that the file does not exists. But if I pass that uri to <code>CameraRoll.saveToCameraRoll</code> it saves it in DCIM folder.</p>
  
  <p>My current code:</p>
  
  <pre><code>    const options = { quality: 0.5 };
  
      const data = await this.camera.takePictureAsync(options)
      const { uri, height, width } = data;
      this.setState({ uri, height, width });
  
      CameraRoll.saveToCameraRoll(data.uri, 'photo') // it saves it into DCIM
      .then( uri =&gt; {
          // tried this too
          //RNFetchBlob.fs.createFile(`${RNFetchBlob.fs.dirs.DCIMDir}/newfile.png`, uri, 'uri'); // throws error that file does not exist
          RNFetchBlob.fs.cp(`${RNFetchBlob.fs.dirs.DCIMDir}`, `${RNFetchBlob.fs.dirs.DCIMDir}/CameraApp/p.png`);  
          console.warn('uri:', uri)
      })
      .catch( err =&gt; console.warn('err:', err));
      console.warn(data);
  </code></pre>
  
  <p>I have tried few weird ways just to save file where I want but in vain. I hope I have cleared my intentions but please let me know if you need more info. Any suggestions are welcome.</p>