When developing an application on React Native, it became necessary to set the color for all text in the application using native methods. In the case of android, this does not cause problems (we just set the desired color in the styles.xml) but what about ios? Is it possible to prescribe the text color somewhere in the info.plist?
Asked
Active
Viewed 196 times
1
-
You can use an extension of UILabel. ```extension UILabel { open override func awakeFromNib() { awakeFromNib() self.textColor = .red } } ``` – Raja Kishan May 02 '21 at 11:13
-
@RajaKishan Should I write this in the AppDelegate.m? – Roman Adigezalov May 02 '21 at 11:18
-
This is the swift code but you can find this code in obj-c and also you can swift code with obj-c and write this code in a separate file. – Raja Kishan May 02 '21 at 11:27