mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-04-29 12:55:10 +08:00
style
This commit is contained in:
@@ -36,11 +36,11 @@
|
||||
|
||||
- (instancetype)initWithID:(REANodeID)nodeID config:(NSDictionary<NSString *,id> *)config
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
_nodeID = nodeID;
|
||||
_lastLoopID = 0;
|
||||
}
|
||||
return self;
|
||||
if ((self = [super init])) {
|
||||
_nodeID = nodeID;
|
||||
_lastLoopID = 0;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
@@ -107,7 +107,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
|
||||
+ (void)findAndUpdateNodes:(nonnull REANode *)node
|
||||
withVisitedSet:(NSMutableSet<REANode *> *)visitedNodes
|
||||
withFinalNodes:(NSMutableArray<REANode *> *)finalNodes
|
||||
withFinalNodes:(NSMutableArray<REANode *> *)finalNodes
|
||||
{
|
||||
if ([visitedNodes containsObject:node]) {
|
||||
return;
|
||||
@@ -125,10 +125,11 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
+ (void)runPropUpdates:(REAUpdateContext *)context
|
||||
{
|
||||
NSMutableSet<REANode *> *visitedNodes = [NSMutableSet new];
|
||||
NSMutableArray<REANode *> * finalNodes = [NSMutableArray new];
|
||||
NSMutableArray<REANode *> *finalNodes = [NSMutableArray new];
|
||||
for (NSUInteger i = 0; i < context.updatedNodes.count; i++) {
|
||||
[self findAndUpdateNodes:context.updatedNodes[i] withVisitedSet:visitedNodes
|
||||
withFinalNodes:finalNodes];
|
||||
[self findAndUpdateNodes:context.updatedNodes[i]
|
||||
withVisitedSet:visitedNodes
|
||||
withFinalNodes:finalNodes];
|
||||
}
|
||||
while (finalNodes.count > 0) {
|
||||
// NSMutableArray used for stack implementation
|
||||
|
||||
Reference in New Issue
Block a user