title: Second arugument of React.memo() not working properly in react native
body: <p>I'm trying to re render only when the minutes change using <code>React.memo()</code> like this:</p>
  <pre><code>function getCurrentTime(){
    let now = new Date();
    return ({
      'mins': now.getMinutes(),
      'secs': now.getSeconds()
    })
  }
  
  
  const Disp = React.memo(({ timeObj }) =&gt; { //this Component is suppose to be in another file
    return (&lt;Text&gt;{timeObj['mins']}&lt;/Text&gt;);
  }, (prevProp, newProp) =&gt; {
  
    if (prevProp['mins'] == newProp['mins'])
      return false;
  
    return true;
  });
  
  
  export default function App() {
  
    const [CurrentTime, setCurrentTime] = useState(() =&gt; getCurrentTime());
  
    useEffect(() =&gt; {
      let secTimer = setInterval(() =&gt; {setCurrentTime(getCurrentTime())}, 500);
      return () =&gt; { clearInterval(secTimer) };
    }, []);
  
    return (
      &lt;View style={styles.body}&gt;
        &lt;Disp timeObj={CurrentTime} /&gt;
      &lt;/View&gt;
    );
  }
  </code></pre>
  <p>but for some reason it isn't working &amp; renders every 500 ms<br />
  I've followed <a href="https://www.youtube.com/watch?v=o-alRbk_zP0" rel="nofollow noreferrer">this</a> tutorial</p>