RCTDisplayWeakRefreshable.h 533 B

12345678910111213141516171819202122
  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 <Foundation/Foundation.h>
  8. @protocol RCTDisplayRefreshable
  9. - (void)displayDidRefresh:(CADisplayLink *)displayLink;
  10. @end
  11. @interface RCTDisplayWeakRefreshable : NSObject
  12. @property (nonatomic, weak) id<RCTDisplayRefreshable> refreshable;
  13. + (CADisplayLink *)displayLinkWithWeakRefreshable:(id<RCTDisplayRefreshable>)refreshable;
  14. @end