RCTAnimatedImage.h 607 B

123456789101112131415161718192021
  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 <UIKit/UIKit.h>
  8. @protocol RCTAnimatedImage <NSObject>
  9. @property (nonatomic, assign, readonly) NSUInteger animatedImageFrameCount;
  10. @property (nonatomic, assign, readonly) NSUInteger animatedImageLoopCount;
  11. - (nullable UIImage *)animatedImageFrameAtIndex:(NSUInteger)index;
  12. - (NSTimeInterval)animatedImageDurationAtIndex:(NSUInteger)index;
  13. @end
  14. @interface RCTAnimatedImage : UIImage <RCTAnimatedImage>
  15. @end