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:
Pavlos Vinieratos 2018-07-15 00:06:49 -07:00 committed by Facebook Github Bot
parent 12d98db901
commit e1cca18d00
1 changed files with 2 additions and 2 deletions

View File

@ -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
}