react-native-windows
react-native-windows copied to clipboard
Avoid ReplaceView in TextInputViewManager
Description
Type of Change
Erase all that don't apply.
- Bug fix (non-breaking change which fixes an issue)
Why
Since we now have props in the CreateView method for core view managers, we can avoid the creation of a TextBox initially in TextInputViewManager when "secureTextEntry" is set to true.
Towards #7143
What
Checks the props passed into CreateViewCore for secureTextEntry
== true
and conditionally creates a PasswordBox
, rather than a TextBox
.
Testing
Ran TextInput example in RNTester and everything works fine.
Optional: Describe the tests that you ran locally to verify your changes.