RCTValueAnimatedNode.h 721 B

123456789101112131415161718192021222324252627282930
  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. #import "RCTAnimatedNode.h"
  9. @class RCTValueAnimatedNode;
  10. @protocol RCTValueAnimatedNodeObserver <NSObject>
  11. - (void)animatedNode:(RCTValueAnimatedNode *)node didUpdateValue:(CGFloat)value;
  12. @end
  13. @interface RCTValueAnimatedNode : RCTAnimatedNode
  14. - (void)setOffset:(CGFloat)offset;
  15. - (void)flattenOffset;
  16. - (void)extractOffset;
  17. @property (nonatomic, assign) CGFloat value;
  18. @property (nonatomic, strong) id animatedObject;
  19. @property (nonatomic, weak) id<RCTValueAnimatedNodeObserver> valueObserver;
  20. @end