title: Hiding elements according to ID
body: <p>I want to click on button an item and it will be hidden. I tried this  code but all the elements are hidden in the array. So how can I hide according to <code>item.post_id</code>?</p>
  
  <pre class="lang-js prettyprint-override"><code>this.state = {
    hide::true
  };
  
  hide = () =&gt; {
    this.setState({
      hide:false
    })
  }
  
  render() {
    return (
      &lt;View&gt;
        {this.state.post.results.map((item, key) =&gt; {
          &lt;View&gt;
            {this.state.hide &amp;&amp; (
              &lt;&gt;
                &lt;View
                  key={key}
                &gt; 
                  &lt;Text&gt;{item.title}&lt;/Text&gt;
                  &lt;Text style={{ marginVertical: 10 }}&gt;{item.text}&lt;/Text&gt;
                  &lt;Button title="Hide" hide={this.hide} /&gt;
                &lt;/View&gt;
              &lt;/&gt;
            )}
          &lt;/View&gt;
         )
       })}
      &lt;/View&gt;
  </code></pre>