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

26 lines
482 B
Mathematica
Raw Normal View History

2021-08-16 00:14:59 +00:00
#import "REABlockNode.h"
#import "REANodesManager.h"
@implementation REABlockNode {
NSArray<NSNumber *> *_block;
}
- (instancetype)initWithID:(REANodeID)nodeID config:(NSDictionary<NSString *,id> *)config
{
if ((self = [super initWithID:nodeID config:config])) {
_block = config[@"block"];
}
return self;
}
- (id)evaluate
{
id result;
for (NSNumber *inputID in _block) {
result = [[self.nodesManager findNodeByID:inputID] value];
}
return result;
}
@end