title: Assigned response data show [object object] React Native
body: <p>I am having a problem to iterate the validation errors that i am getting from server side (Laravel). I could get the errors response and assign in state errors array. But when i console.log the state it shows me [obeject object]. So i am unable to iterate the array. Can u guys kindly help ?</p>
  
  <pre><code>constructor(props){
          super(props);
          this.state={
              userName:'',
              userEmail:'', 
              userPassword:'',
              errors:[]               
          }
      }
  
  axios({
              method: 'post',
              url: API_URL+'signup',
              data: {
                  username: userName,
                  email: userEmail,
                  password: userPassword
              }
          })
          .then((response) =&gt; {
              var count = Object.keys(response.data.errors).length;
              if (count &gt; 0) {
                  console.log(response.data);
                  var newState = []; 
                  newState.push(response.data);
                  this.setState({
                      errors: newState
                  })
              }
  
              console.log("error = " + this.state.errors); // console output: error = [object Object]
          })
          .catch((error) =&gt; {
              console.log(error);
          });
  </code></pre>
  
  <p>// inside render function i have done following code to show the validation errors</p>
  
  <pre><code>render() {
      &lt;Errors errors={this.state.errors} /&gt;
  }
  
  const Errors = (props) =&gt; {
      return (
          &lt;View&gt;{props.errors.map((error, i) =&gt; &lt;Text key={i}&gt;{error}&lt;/Text&gt;)}&lt;/View&gt;
      );
  }
  </code></pre>