react-native-phone-number-input icon indicating copy to clipboard operation
react-native-phone-number-input copied to clipboard

Support placeholderTextColor prop

Open justinschier opened this issue 3 years ago • 3 comments

Hey Anurag!

Thank you so much for this amazing npm package!!

I needed to be able to specify the placeholderTextColor so I thought I'd submit a PR. I made the code so if it's not specified, it falls back to a close approximation of the default placeholder text color, 35% black. I also added the new prop to the README page.

I tried it in my project and it works. Hope you'll consider merging it into your project.

If necessary you can reach me by email: justinschier [at] gmail.com

Thanks! Justin Schier

justinschier avatar May 15 '21 18:05 justinschier

exactly what we needed at my company and worked perfectly with patch package 👍

AddeNordh avatar May 20 '21 14:05 AddeNordh

You can do this by changing the input props.

Ex:

textInputProps={{
  placeholderTextColor: 'red'
}}

Matteo-Peronnet avatar Dec 15 '21 13:12 Matteo-Peronnet

Hey Anurag Can we please merge the changes of @justinschier asap Thanks

Souch007 avatar Jan 03 '22 12:01 Souch007