question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Textfield password alias not working

See original GitHub issue

We had a password text field defined as so:

const PasswordField = MKTextField
  .textfieldWithFloatingLabel()
  .withPassword(true)
  .withPlaceholder('Password:')
  .withStyle(styles.textfieldWithFloatingLabel)
  .withFloatingLabelFont({fontSize: 10, fontStyle: 'italic', fontWeight: '200'})
  .withTintColor(MKColor.Red)
  .build();

After upgrading to r-n .30 from .24, it was no longer hiding the password characters. We did a workaround by specifying the actual proptype name on textfield secureTextEntry and the characters are now masked.

const PasswordField = MKTextField
  .textfieldWithFloatingLabel()
  //works with correct property name, not with alias
  .withSecureTextEntry(true)
  .withPlaceholder('Password:')
  .withStyle(styles.textfieldWithFloatingLabel)
  .withFloatingLabelFont({fontSize: 10, fontStyle: 'italic', fontWeight: '200'})
  .withTintColor(MKColor.Red)
  .build();

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jcteaguecommented, Aug 18, 2016

I just tested to see if the value alias in textfield would work and it is also not working.

I was going to work on PR for this, but I honestly don’t think these provide any real value. IMHO just changing the docs would be better. It keeps the builder props inline with r-n props and you don’t have to make any changes if they change property names.

0reactions
damoguyan8844commented, Apr 4, 2017

use <MKTextField … password={true} /> works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatic password confirmation in alias - unix - Stack Overflow
You can use the -S option to cause sudo to read the password from standard input. Try this: alias x='sudo -S ifconfig en0...
Read more >
Exception while trying to get password for alias h... - 340045
HI, after i have integrated CDH with Openldap, I found there is a WARNING in container log like below, try to - 340045....
Read more >
How to input a password when using an alias - Ask Ubuntu
My question is : is it possible to ask for the password so that it doees not appear in the terminal at the...
Read more >
Changed my Primary Alias . Now I have login problems. Tries ...
PIN/Password with the normal 'Lock Screen' Options... Now, all I get is the option to 'Sign-In', from there it takes me to the...
Read more >
keytool-Key and Certificate Management Tool
If the modifier env or file is not specified, then the password has the ... from the standard input), signs it using alias's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found