Check out example codes for "set white place holder color in swift". It will help you in understanding the concepts better.

Code Example 1

myTextField.attributedPlaceholder = NSAttributedString(string: "placeholder text",
                             attributes: [NSAttributedString.Key.foregroundColor: UIColor.white])

Code Example 2

placeholderLabel.textColor (Swift 4)

_placeholderLabel.textColor (Swift 3 or less)

Learn ReactJs, React Native from akashmittal.com