title: Slider not keep on moving with onProgress method in react native
body: <p>I am playing some audio files in react native. For progress of the audio file (Duration), I am showing slider for status of the audio file and for forward and reverse the duration.</p>
  
  <p>But, According to audio duration, It is not keep on moving the position (like timer).</p>
  
  <p><a href="https://www.npmjs.com/package/react-native-slider" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-slider</a></p>
  
  <pre><code>getInfo = async () =&gt; {
      try {
        const info = await SoundPlayer.getInfo();
        // console.log('getInfo', info); // {duration: 12.416, currentTime: 7.691}
        const currentTime = get(info, 'currentTime');
        this.setState({ currentDuration: currentTime });
      } catch (e) {
        console.log('There is no song playing', e);
      }
    }
           getProgress = (e) =&gt; {
             console.log('getProgress calling');
             this.getInfo();
             this.setState({
              currentTime: this.state.currentDuration,
             });
           }
  
                  &lt;Slider
                    maximumValue={parseFloat(totalLength)}
                    minimumTrackTintColor="color"
                    maximumTractTintColor="color"
                    step={1}
                    value={currentTime}
                    onSlidingComplete={value =&gt; this.onValueChange(value)}
                    style={styles.slider}
                    thumbTintColor="red"
                    trackLength={parseFloat(totalLength)}
                  // onSlidingStart={() =&gt; this.setState({ paused: true })}
                    currentPosition={currentTime}
                    onProgress={e =&gt; this.getProgress(e)}
                  /&gt;
  </code></pre>
  
  <p>It has to move slider value automatically according to audio duration</p>
  
  <p>Any suggestions?</p>