Skip to content

Android doesn't respect autoCapitalize when secureTextEntry is set #17099

Closed
@joshhornby

Description

@joshhornby

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
  OS: macOS Sierra 10.12.6
  Node: 8.4.0
  Yarn: 1.2.1
  npm: 5.3.0
  Watchman: 4.9.0
  Xcode: Xcode 9.1 Build version 9B55
  Android Studio: 3.0 AI-171.4408382

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.50.1 => 0.50.1

Steps to Reproduce

<View style={styles.container}>
        <TextInput
          placeholder="Text"
          secureTextEntry={true}
          autoCapitalize="none"
          underlineColorAndroid="rgba(0, 0, 0, 0)"
        />
      </View>

Expected Behavior

Keyboard shouldn't be auto capitalized. It seems when autoCapitalize and secureTextEntry are both set autoCapitalize is ignored. If I remove secureTextEntry then autoCapitalize works as expected. This only happens on Android.

Actual Behavior

Keyboard is auto capitalized when secureTextEntry is set

Reproducible Demo

https://snack.expo.io/ByoIR0rbG

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions