```
onButtonPress = () => {
  min = 1000;
  max = 9999;
  randomotp = min + (Math.random() * (max - min));
  console.log(Math.round(randomotp));
  this.setState({
    otpfield:'#48A23A'
   });
   console.log('result',this.state.otpfield);
  }
}

```

I have been executing this function in the Button on click , but the corresponding (i,e Otpfield) value is not changing