fix(ios): fix hippytext reuse bug

This commit is contained in:
mengyanluo
2021-08-03 22:40:18 +08:00
committed by zoomchan-cxj
parent 28e5d68d71
commit 65fbf369ad
+12
View File
@@ -64,6 +64,18 @@ static void collectNonTextDescendants(HippyText *view, NSMutableArray *nonTextDe
}];
}
- (void)removeHippySubview:(UIView *)subview {
if ([[self hippySubviews] containsObject:subview]) {
[super removeHippySubview:subview];
}
else {
NSArray<UIView *> *hippySubviews = [self hippySubviews];
for (UIView *hippySubview in hippySubviews) {
[hippySubview removeHippySubview:subview];
}
}
}
- (void)hippySetInheritedBackgroundColor:(__unused UIColor *)inheritedBackgroundColor {
// mttrn:
// UIColor *backgroundColor = [self rightBackgroundColorOfTheme];