Merge pull request #166 from vjeux/update7

Updates from Wed 18 Mar
This commit is contained in:
Christopher Chedeau
2015-03-18 16:06:34 -07:00
75 changed files with 795 additions and 373 deletions

View File

@@ -166,6 +166,12 @@
{
RCT_EXPORT();
if (jsDuration == 0 && repeats == NO) {
// For super fast, one-off timers, just enqueue them immediately rather than waiting a frame.
[_bridge enqueueJSCall:@"RCTJSTimers.callTimers" args:@[@[callbackID]]];
return;
}
NSTimeInterval interval = jsDuration / 1000;
NSTimeInterval jsCreationTimeSinceUnixEpoch = jsSchedulingTime / 1000;
NSTimeInterval currentTimeSinceUnixEpoch = [[NSDate date] timeIntervalSince1970];