react native settimeout
setTimeout(() => {this.setState({timePassed: true})}, 1000)
react native settimeout
setTimeout(() => {this.setState({timePassed: true})}, 1000)
react native get current time
var date = new Date().getDate(); //To get the Current Date
var month = new Date().getMonth() + 1; //To get the Current Month
var year = new Date().getFullYear(); //To get the Current Year
var hours = new Date().getHours(); //To get the Current Hours
var min = new Date().getMinutes(); //To get the Current Minutes
var sec = new Date().getSeconds(); //To get the Current Seconds
react native time set state
export const delay = (ms) => new Promise((res) => setTimeout(res, ms));
// do something
await delay(500); // wait 0.5 seconds
// do something else
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us