2016-06-09 17:34:41 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import "RCTAnimatedNode.h"
|
|
|
|
|
2016-08-12 01:10:16 +00:00
|
|
|
@class RCTValueAnimatedNode;
|
|
|
|
|
|
|
|
@protocol RCTValueAnimatedNodeObserver <NSObject>
|
|
|
|
|
|
|
|
- (void)animatedNode:(RCTValueAnimatedNode *)node didUpdateValue:(CGFloat)value;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2016-06-09 17:34:41 +00:00
|
|
|
@interface RCTValueAnimatedNode : RCTAnimatedNode
|
|
|
|
|
2016-09-26 17:17:29 +00:00
|
|
|
- (void)setOffset:(CGFloat)offset;
|
|
|
|
- (void)flattenOffset;
|
2016-11-08 04:36:52 +00:00
|
|
|
- (void)extractOffset;
|
2016-09-26 17:17:29 +00:00
|
|
|
|
2016-06-09 17:34:41 +00:00
|
|
|
@property (nonatomic, assign) CGFloat value;
|
2016-08-12 01:10:16 +00:00
|
|
|
@property (nonatomic, weak) id<RCTValueAnimatedNodeObserver> valueObserver;
|
2016-06-09 17:34:41 +00:00
|
|
|
|
|
|
|
@end
|