Check out example codes for "use timer swift". It will help you in understanding the concepts better.

Code Example 1

Timer.scheduledTimer(timeInterval: 1, 
    target: self, 
    selector: #selector(YourController.update), 
    userInfo: nil, 
    repeats: true)

// @objc selector expected for Timer
@objc func update() {
    // do what should happen when timer triggers an event
}

Learn ReactJs, React Native from akashmittal.com