title: Why is not allowing spread operator in React Native component property assignment a performance optimization?
body: <p>In a React Native component if the spread operator is used in the props assignment, an error, "In this environment the target of assign MUST be an object. This error is a performance optimization and not spec compliant." is thrown.</p>
  
  <p>For example, in render function</p>
  
  <pre><code>const { style } = props;
    return (
      &lt;View style={{borderWidth: 1, ...style}}&gt;
  </code></pre>
  
  <p>gives<a href="https://i.stack.imgur.com/GA2OS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GA2OS.png" alt="enter image description here"></a></p>
  
  <p>meanwhile</p>
  
  <pre><code>const { style } = props;
    return (
      &lt;View style={{borderWidth: 1, paddingLeft: 1}}&gt;
  </code></pre>
  
  <p>works. Why does the spread syntax affect performance?</p>