title: I can't use Spread into mapStateToProps [React Native]
body: <p><a href="https://i.stack.imgur.com/yEHgk.png" rel="nofollow noreferrer">I got this error message</a></p>
  
  <p>I know lots of questions are there on this error, but in my case, i can't use spread inside <code>mapStateToProps</code>, While in my previous case, I can use spread inside <code>mapStateToProps</code>. can anybody tell me about this error?</p>
  
  <p>this is my code by the way</p>
  
  <pre><code>const mapStateToProps = state =&gt; {
    const IncomeVal = _.map(state.IncomeVal, (val, uid) =&gt; {
        return { ...val, uid };
    });
  
     return { IncomeVal };
  };
  
  export default connect(mapStateToProps, { ValueIncome })(PageHome);
  </code></pre>