Skip to content

Commit

Permalink
fix(ios): fix move node index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed May 14, 2024
1 parent 2fdf1b2 commit c63f221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/native/ios/renderer/HippyUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ - (void)renderMoveNodes:(std::vector<std::shared_ptr<hippy::DomNode>> &&)nodes
[self addUIBlock:^(__unused HippyUIManager *uiManager, NSDictionary<NSNumber *,__kindof UIView *> *viewRegistry) {
UIView *superView = nil;
for (auto node : strongNodes) {
int32_t index = node->GetIndex();
int32_t index = node->GetRenderInfo().index;
int32_t componentTag = node->GetId();
UIView *view = [viewRegistry objectForKey:@(componentTag)];
if (!view) {
Expand Down

0 comments on commit c63f221

Please sign in to comment.