title: How to call react-compound-timer pause and resume in function?
body: <p>I try to implement the <code>react-compound-timer</code> component in my app but I face an issue
  while calling <code>start</code>, <code>pause</code> and <code>resume</code> in my own function. I am very new In react native. I want to call this <code>onPress={start}</code> in my own function <code>Start</code>.
  code snip is here.</p>
  
  <pre><code>import React, { Component } from "react";
  import { View, Text, Image, StyleSheet } from "react-native";
  import Timer from "react-compound-timer";
  
  class TestTimer extends Component {
  
    constructor(props) {
      super(props);
      this.state = {};
    }
  
  
    Start() {
      // call start function here
  
    }
  
    render() {
      const { navigate } = this.props.navigation;
      return (
        &lt;View style={styles.container}&gt;
          &lt;Timer initialTime={55000} startImmediately={false}&gt;
            {({ start, resume, pause, stop, reset, timerState }) =&gt; (
              &lt;React.Fragment&gt;
                &lt;Text&gt;
                  &lt;Timer.Days /&gt; days
                  &lt;Timer.Hours /&gt; hours
                  &lt;Timer.Minutes /&gt; minutes
                  &lt;Timer.Seconds /&gt; seconds
                  &lt;Timer.Milliseconds /&gt; milliseconds
                &lt;/Text&gt;
                &lt;Text&gt;{timerState}&lt;/Text&gt;
                &lt;View style={{ flexDirection: "row" }}&gt;
                  &lt;Button onPress={start}&gt;    // this function i want to call                           
                    &lt;Text&gt;{"start"}&lt;/Text&gt;    // in my own function
                  &lt;/Button&gt;
                  &lt;Button onPress={pause}&gt;
                    &lt;Text&gt;{"pause"}&lt;/Text&gt;
                  &lt;/Button&gt;
                  &lt;Button onPress={resume}&gt;
                    &lt;Text&gt;{"resume"}&lt;/Text&gt;
                  &lt;/Button&gt;
                  &lt;Button onPress={stop}&gt;
                    &lt;Text&gt;{"stop"}&lt;/Text&gt;
                  &lt;/Button&gt;
                  &lt;Button onPress={reset}&gt;
                    &lt;Text&gt;{"reset"}&lt;/Text&gt;
                  &lt;/Button&gt;
                &lt;/View&gt;
              &lt;/React.Fragment&gt;
            )}
          &lt;/Timer&gt;
          &lt;Button onPress={() =&gt; this.Start()}&gt;
            &lt;Text&gt;{"custom start"}&lt;/Text&gt;
          &lt;/Button&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>