Définir REACT REACT natif
setTimeout(() => {
this.yourFunction();
}, 3000);
Upset Unicorn
setTimeout(() => {
this.yourFunction();
}, 3000);
setTimeout(() => {this.setState({timePassed: true})}, 1000)
// go to node_modules\react-native\Libraries\Core\Timers\JSTimers.js
// change MAX_TIMER_DURATION_MS = 60 * 1000 to 10000 as below
const MAX_TIMER_DURATION_MS = 10000 * 1000;