diff --git a/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm b/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm index 939faead8dc..08b6603dfe7 100644 --- a/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +++ b/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm @@ -32,10 +32,11 @@ using namespace facebook::react; { RCTAssert( childComponentView.superview == nil, - @"Attempt to mount already mounted component view. (parent: %@, child: %@, index: %@)", + @"Attempt to mount already mounted component view. (parent: %@, child: %@, index: %@, existing parent: %@)", self, childComponentView, - @(index)); + @(index), + @([childComponentView.superview tag])); [self insertSubview:childComponentView atIndex:index]; } @@ -49,10 +50,12 @@ using namespace facebook::react; @(index)); RCTAssert( (self.subviews.count > index) && [self.subviews objectAtIndex:index] == childComponentView, - @"Attempt to unmount a view which has a different index. (parent: %@, child: %@, index: %@)", + @"Attempt to unmount a view which has a different index. (parent: %@, child: %@, index: %@, actual index: %@, tag at index: %@)", self, childComponentView, - @(index)); + @(index), + @([self.subviews indexOfObject:childComponentView]), + @([[self.subviews objectAtIndex:index] tag])); [childComponentView removeFromSuperview]; }