placeholderTextColor
is ignored when secureTextEntry = {true}
on TextInput
#4476
Labels
Milestone
placeholderTextColor
is ignored when secureTextEntry = {true}
on TextInput
#4476
Environment
If you are using latest version:
react-native -v
:react-native-cli: 2.0.1
react-native: 0.61.52.
react-native run-windows --info
:Otherwise if
--info
doesn't exist:react-native -v
:react-native-cli: 2.0.1
react-native: 0.61.52.
npm ls rnpm-plugin-windows
:`-- (empty)
npm ls react-native-windows
:`-- react-native-windows@0.61.0
node -v
:v12.10.0
npm -v
:6.10.3
yarn --version
:1.22.0
Then, specify:
10.0,18362.0
x64
Windows 10 PC
Visual Studio 2019
Steps to Reproduce
(Write your steps here:)
On a high-level we need to be able to change the color of the placeholder text in
TextInput
on react-native-windows.The
placeholderTextColor
works fine when thesecureTextEntry = {false}
butplaceholderTextColor
is ignored whensecureTextEntry = {true}
onTextInput
.This is partially because
TextInput
on react-native-windows useswinrt::Windows::UI::Xaml::Controls::TextBox
whensecureTextEntry = {false}
andwinrt::Windows::UI::Xaml::Controls::PasswordBox
whensecureTextEntry = {true}
.Even though we have the
TextBox.PlaceholderForeground
Property that we currently use to change the placeholder color, we actually don’t have anything equivalent forPasswordBox
that we can just use straight away.Expected Behavior
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screenshots!)
react-native run-windows --logging
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Additional context
(Write any other additional context that may help in root causing the issue.)
The text was updated successfully, but these errors were encountered: