From 10fdadb9d0dca10d2d942152b9d5a49fea1ad85f Mon Sep 17 00:00:00 2001 From: luomy Date: Wed, 24 Nov 2021 15:41:34 +0800 Subject: [PATCH] fix(ios): text should not be available for view cache --- ios/sdk/component/text/HippyText.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/sdk/component/text/HippyText.mm b/ios/sdk/component/text/HippyText.mm index 1862506c7f7..5b2be5264ee 100644 --- a/ios/sdk/component/text/HippyText.mm +++ b/ios/sdk/component/text/HippyText.mm @@ -76,6 +76,10 @@ - (void)removeHippySubview:(UIView *)subview { } } +- (BOOL)canBeRetrievedFromViewCache { + return NO; +} + - (void)hippySetInheritedBackgroundColor:(__unused UIColor *)inheritedBackgroundColor { // mttrn: // UIColor *backgroundColor = [self rightBackgroundColorOfTheme];