title: How to push item to array if checked in React Native?
body: <p>I am mapping an array and checking with checkbox.
  But I checking it in customCheckbox.
  I want to push checked items to <strong>involvedfriends:[]</strong><br></p>
  <blockquote>
  <p>How can I call checked state from Checkbox, and add checked item to array</p>
  <p>But I not quite sure how i will achieve it, hope someone can help me.</p>
  </blockquote>
  <p><strong>My state</strong></p>
  <pre><code>state={involvedFriends:[]}
  </code></pre>
  <p><strong>AddFriendScreen</strong></p>
  <pre><code>{this.state.involvedFriends.map((name, key) =&gt; (
          &lt;View&gt;
            &lt;CustomCheckbox name={name}/&gt;
          &lt;/View&gt;
        ))}
  </code></pre>
  <p><strong>CustomCheckbox</strong></p>
  <pre><code>this.state = {
    checked: false,
  };
  
  toggleChange = () =&gt; {
       this.setState({ checked: !this.state.checked })};
  
  render() {
  return (
    &lt;View style={styles.container}&gt;
      &lt;Text style={styles.text}&gt;{this.props.name}&lt;/Text&gt;
      &lt;CheckBox
        checked={this.state.checked}
        onPress={() =&gt; this.toggleChange()}
      /&gt;
    &lt;/View&gt;
  )}
  </code></pre>