GT2/Ejectable/node_modules/react-native-reanimated/ios/Nodes/REAValueNode.m

29 lines
454 B
Mathematica
Raw Normal View History

2021-08-16 00:14:59 +00:00
#import "REAValueNode.h"
@implementation REAValueNode {
NSNumber *_value;
}
- (instancetype)initWithID:(REANodeID)nodeID
config:(NSDictionary<NSString *, id> *)config
{
if (self = [super initWithID:nodeID config:config]) {
_value = config[@"value"];
}
return self;
}
- (void)setValue:(NSNumber *)value
{
_value = value;
[self forceUpdateMemoizedValue:value];
}
- (id)evaluate
{
return _value;
}
@end