title: how i convert this to functional component in react native
body: <pre><code>                let { eventDate } = this.state;
               
                  if (eventDate &lt;= 0) {
                      this.setState({ isTimerOver: true});  
                  }
            
  </code></pre>
  <p>Here I need to write this in functional components. can you help me to do this</p>