Check out example codes for "nstimer example objective c". It will help you in understanding the concepts better.

Code Example 1

[NSTimer scheduledTimerWithTimeInterval:5.0f target:self selector:@selector(methodToRun:) userInfo:nil repeats:YES];

- (void) methodToRun:(NSTimer*)t {
  // Code here
}

Learn ReactJs, React Native from akashmittal.com