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.

Autofill not disable. textContentType='none' not work

See original GitHub issue

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14.1
      CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
      Memory: 315.84 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.10.0 - /usr/local/bin/node
      Yarn: 1.9.4 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 27, 28
        Build Tools: 27.0.3, 28.0.2, 28.0.3
        System Images: android-28 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5014246
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1 
      react-native: ^0.57.5 => 0.57.5 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

I use autofill for login form. For registration form i disable autofill.

 textContentType='none'

but autofill is work and show hint

Reproducible Demo

  1. setting associated domains
  2. make credentials
  3. test autofill

My full code

            <TextInput
              textContentType='none'
              style={{ flex: 1, height: '100%' }}
              ref={(v) => {
                this.regEmailInput = v;
              }}
              value={email}keyboardType="email-address"
              placeholderTextColor="#bbb"
              autoCapitalize="none"
              placeholder={t('Email')}
              underlineColorAndroid="transparent"
              onChangeText={this.handleEmail}
            />
            <TextInput
              secureTextEntry
              textContentType='none'
              style={{ flex: 1, height: '100%' }}
              ref={(v) => {
                this.regPasswordInput = v;
              }}
              placeholderTextColor="#bbb"
              autoCapitalize="none"
              placeholder={t('At least 8 symbols')}
              underlineColorAndroid="transparent"
              onChangeText={this.handlePassword}
            />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
cpojercommented, Mar 26, 2019

Closing as we don’t have a repro for this, even after requesting it. Happy to reopen if you find a way to repro.

0reactions
mechazodcommented, Jan 15, 2020

@shamilovtim Same experience with iOS 13 update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable autocomplete on react native paper TextInput ...
TextInput in react-native-web API says it follows The HTML autocomplete attribute, but it doesn't work. ... for ios textContentType={'none'}.
Read more >
How Do I Disable or Clear AutoFill/AutoComplete Information?
In Google Chrome, you will want to not only turn off autofill data, but also clear it. Instructions are listed below. Turning Off...
Read more >
TextInput - React Native
To disable autofill, set textContentType to none . Possible values for textContentType are: none; URL; addressCity; addressCityAndState ...
Read more >
Stopping Chrome from ignoring autocomplete=off - Adam Silver
Autofill (or autocomplete) attributes tell browsers to automatically fill out an answer for the user if the user has stored that information ...
Read more >
Unable to get password autofill effect to work - MSDN - Microsoft
I follow the guide till the Domain association section since from what i read it does not seems to be needed for my...
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