title: Error in react native "`filePath` expects a string value"
body: <p>I have some code to open the camera with React Native and save the image using FireBase, but it gives me an error saying <code>filePath</code> expects a string value.</p>
  <p><a href="https://i.stack.imgur.com/GlvTX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GlvTX.jpg" alt="enter image description here" /></a></p>
  <p>Here is my code:</p>
  <pre class="lang-js prettyprint-override"><code> const openCamera = ()=&gt;{
      launchCamera({quality:0.5},(fileobj) =&gt;{
          console.log(fileobj)
          const uploadTask = storage().ref().child(`/items/${Date.now()}`).putFile(fileobj.uri)
          uploadTask.on('state_changed',
          (snapshot) =&gt; {
              var progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100;
              if (progress == 100){alert(&quot;Uploaded&quot;)}
          },
          (error) =&gt; {
              alert(&quot;something went wrong&quot;)
          },
          () =&gt; {
              uploadTask.snapshot.ref.getDownloadURL().then((downloadURL) =&gt;{
                  console.log(downloadURL)
                  setImage(downloadURL)
              });
          }
          );
      })
     }
  </code></pre>