Check out example codes for "andoird kotlin delay". It will help you in understanding the concepts better.

Code Example 1

Handler().postDelayed({
 //doSomethingHere()
 }, 1000)

Learn ReactJs, React Native from akashmittal.com