Skip to content

Commit 22e9635

Browse files
committed
Fix ptmt#162: use the right timestamp for RTCFrameUpdate
1 parent 9bf6036 commit 22e9635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: React/Base/RCTFrameUpdate.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ @implementation RCTFrameUpdate
2121
- (instancetype)initWithTimer:(NSTimer *)timer
2222
{
2323
if ((self = [super init])) {
24-
_timestamp = timer.timeInterval;
25-
_deltaTime = timer.tolerance; // TODO: real duration
24+
_timestamp = timer.fireDate.timeIntervalSince1970;
25+
_deltaTime = timer.timeInterval;
2626
}
2727
return self;
2828
}

0 commit comments

Comments
 (0)