mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Replace deprecated UILineBreakModeWordWrap with NSLineBreakByWordWrapping (#19791)
Summary: Replace deprecated enum values with the modern ones. N/A [INTERNAL] [DEPRECATION] [Red box text wrapping] - Replaced deprecated values with supported ones. Pull Request resolved: https://github.com/facebook/react-native/pull/19791 Differential Revision: D8851755 Pulled By: hramos fbshipit-source-id: 7315f199ff748078dec4efb96254bcdb0756e1ba
This commit is contained in:
committed by
Facebook Github Bot
parent
12d98db901
commit
e1cca18d00
@@ -43,7 +43,7 @@
|
||||
self.keyLabel.textColor = [UIColor whiteColor];
|
||||
self.keyLabel.numberOfLines = 0;
|
||||
#if !TARGET_OS_TV
|
||||
self.keyLabel.lineBreakMode = UILineBreakModeWordWrap;
|
||||
self.keyLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
||||
self.keyLabel.font = [UIFont fontWithName:@"Menlo-Regular" size:12.0f];
|
||||
#endif
|
||||
self.valueLabel = [UILabel new];
|
||||
@@ -63,7 +63,7 @@
|
||||
self.valueLabel.textColor = [UIColor whiteColor];
|
||||
self.valueLabel.numberOfLines = 0;
|
||||
#if !TARGET_OS_TV
|
||||
self.valueLabel.lineBreakMode = UILineBreakModeWordWrap;
|
||||
self.valueLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
||||
self.valueLabel.font = [UIFont fontWithName:@"Menlo-Regular" size:12.0f];
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user