diff --git a/Libraries/Text/RCTText.m b/Libraries/Text/RCTText.m index c7f00b934..d6e00f1b6 100644 --- a/Libraries/Text/RCTText.m +++ b/Libraries/Text/RCTText.m @@ -62,8 +62,8 @@ _layoutManager = layoutManager; - for (NSLayoutManager *layoutManager in _textStorage.layoutManagers) { - [_textStorage removeLayoutManager:layoutManager]; + for (NSLayoutManager *existingLayoutManager in _textStorage.layoutManagers) { + [_textStorage removeLayoutManager:existingLayoutManager]; } [_textStorage addLayoutManager:_layoutManager];