mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-06-15 10:28:20 +08:00
Children in
This commit is contained in:
@@ -136,7 +136,7 @@ public class ProceduralNode extends Node {
|
||||
result.add(context.parent);
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
return mChildren;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -33,7 +33,7 @@ typedef NSNumber* REANodeID;
|
||||
|
||||
- (void)addChild:(REANode *)child NS_REQUIRES_SUPER;
|
||||
- (void)removeChild:(REANode *)child NS_REQUIRES_SUPER;
|
||||
- (NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext;
|
||||
- (NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext;
|
||||
|
||||
- (void)dangerouslyRescheduleEvaluate:(REAEvalContext *)evalContext;
|
||||
- (void)forceUpdateMemoizedValue:(id)value
|
||||
|
||||
@@ -74,7 +74,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
}
|
||||
}
|
||||
|
||||
-(NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext {
|
||||
-(NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext {
|
||||
return _childNodes;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
}
|
||||
|
||||
REAEvalContext *currentContext = contexts.lastObject;
|
||||
NSMutableArray *__nullable children = [node getChildenByContext:currentContext];
|
||||
NSMutableArray *__nullable children = [node getChildrenInContext:currentContext];
|
||||
REAEvalContext *newContext = [node switchContextWhileUpdatingIfNeeded:currentContext withLastVisitedNode:lastVisited];
|
||||
BOOL pushedNewContext = false;
|
||||
REAEvalContext *__nullable contextPopped = NULL;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext {
|
||||
- (NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext {
|
||||
if (evalContext.parent != NULL) {
|
||||
NSMutableArray *result = [NSMutableArray init];
|
||||
[result addObject:evalContext.parent];
|
||||
|
||||
Reference in New Issue
Block a user