From ba71e4b45991673977003cdee33a823e1d9419bb Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 21 Feb 2024 11:49:46 -0800 Subject: [PATCH] Fix `numberOfLines` not updating on iOS 15 (#2956) --- modules/react-native-ui-text-view/ios/RNUITextViewManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/react-native-ui-text-view/ios/RNUITextViewManager.m b/modules/react-native-ui-text-view/ios/RNUITextViewManager.m index 9a6f0285..32dfb3b2 100644 --- a/modules/react-native-ui-text-view/ios/RNUITextViewManager.m +++ b/modules/react-native-ui-text-view/ios/RNUITextViewManager.m @@ -4,6 +4,7 @@ RCT_REMAP_SHADOW_PROPERTY(numberOfLines, numberOfLines, NSInteger) RCT_REMAP_SHADOW_PROPERTY(allowsFontScaling, allowsFontScaling, BOOL) +RCT_EXPORT_VIEW_PROPERTY(numberOfLines, NSInteger) RCT_EXPORT_VIEW_PROPERTY(onTextLayout, RCTDirectEventBlock) RCT_EXPORT_VIEW_PROPERTY(ellipsizeMode, NSString) RCT_EXPORT_VIEW_PROPERTY(selectable, BOOL)