title: Remove item by name in Firebase React-Native app
body: <p>I am trying to remove/delete items from my Firebase Database onPress of a button. The following is my code for the method I'm using to attempt to remove the item.</p>
  
  <pre><code>let itemsRef = db.ref('/items');
  
  handleRemove = (item) =&gt; {
  
      itemsRef.remove({
        name: item
      });
  }
  </code></pre>
  
  <p>My method for remove is the same implementation of the push method that adds items to the database.</p>
  
  <p>I get an error stating that - "Error: Reference.remove failed: first argument must be a valid function" </p>
  
  <p><a href="https://i.stack.imgur.com/eXlzs.png" rel="nofollow noreferrer">See image of error screen </a></p>