title: How to update props after getting fetch data
body: <p>i am trying to get data from fetch , and ''refresh'' the page , with new props that their value is the data from fetch</p>
  
  <p>submit = () => {</p>
  
  <pre><code>let user = {
    email: this.props.email,
    newuser: this.state.new_username
  };
  
  fetch("http://192.168.2.45/backend/public/api/update", {
    method: "POST",
    body: JSON.stringify(user),
    headers: new Headers({
      "Content-Type": "application/json"
    })
  })
    .then(res =&gt; res.json())
    .then(responseJson=&gt;Actions.refresh({username:responseJson}) )
    .catch(error =&gt; console.error("error:", error));
  </code></pre>
  
  <p>};</p>
  
  <p>render() {
      return (</p>
  
  <pre><code>    &lt;View style={{ alignItems: "center" }}&gt;
        &lt;Text style={styles.name}&gt;{this.props.username}&lt;/Text&gt;
  
      &lt;/View&gt;
  </code></pre>
  
  <p>i am trying in someway take the responseJson and update with its value my props.username , but it does not seem to update</p>