title: Uploading Image to Firebase in React Native
body: <p>I have two image paths in my component state</p>
  
  <p><a href="https://i.stack.imgur.com/GyH2f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GyH2f.png" alt="enter image description here"></a></p>
  
  <p>I try to upload one of the images inside of a function but get an error: </p>
  
  <pre><code>Firebase Storage: Invalid argument in 'put' at index 0: Expected Blob or file
  </code></pre>
  
  <p>and my function </p>
  
  <pre><code>submitImages = () =&gt; {
  
      // Upload images to Firebase storage
      let user = firebaseAuth.currentUser;
      let imagesRef = storageRef.child('productImages/' + user.uid);
      imagesRef.put(this.state.imageFront).then(snapshot =&gt; {
          console.log('Uploaded ' + this.state.imageFront);
      });
  }
  </code></pre>
  
  <p>What should I be doing instead to get these images up to Firebase. Thanks! </p>