Hi I am trying to copy a text that is outputted from the following code .
<Text style={{color: 'white', textAlign: 'center'}}>
        {rideDuration != '' ? rideDuration + 's' : null}
      </Text>
The setAmountDuration is defined in the following .
  const calculateAmountDuration = async () => {
    const duration = ride.stop.- ride.start
    let durationSec = duration/1000;
    setrideDuration(durationSec)
  }
I want to copy to clip-board the output 0.08s

 
    