RCTFrameUpdate.m 555 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <QuartzCore/CADisplayLink.h>
  8. #import "RCTFrameUpdate.h"
  9. #import "RCTUtils.h"
  10. @implementation RCTFrameUpdate
  11. RCT_NOT_IMPLEMENTED(-(instancetype)init)
  12. - (instancetype)initWithDisplayLink:(CADisplayLink *)displayLink
  13. {
  14. if ((self = [super init])) {
  15. _timestamp = displayLink.timestamp;
  16. _deltaTime = displayLink.duration;
  17. }
  18. return self;
  19. }
  20. @end