title: CameraRoll.saveToCameraRoll(tag,type) is deprecated use the save function
body: <p>I am trying to save captured images and video recording from phone camera to my device gallery, but I get permission denied and error message stating that CameraRoll.saveToCameraRoll(tag, type) is deprecated. Use the save function instead.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>takePicture = async () =&gt; {
          if (this.camera) {
              const options = { quality: 1 };
              const data = await this.camera.takePictureAsync(options);
              //save photo
              CameraRoll.saveToCameraRoll(data.uri, 'photo').then(onfulfilled =&gt; {
                  ToastAndroid.show(onfulfilled, ToastAndroid.SHORT);
              }).catch(error =&gt; {
                  ToastAndroid.show(`${error.message}`, ToastAndroid.SHORT);
              });
          }
      };</code></pre>
  </div>
  </div>
  </p>