Skip to content

TextInput: with a suffix, the input text aligns toward the suffix instead of the start #5246

Closed

Description

@Doberjohn

Current behaviour

With a prefix and a suffix, the placeholder and the typed text sit right next to the suffix instead of starting after the prefix, on iOS and Android. src/components/TextInput/utils.ts sets textAlign toward the suffix (hasSuffix === isRTL ? 'left' : 'right') for both variants. In 5.x the input start-aligned (the textAlign prop, else the layout direction), so this changed in 6.x.

Expected behaviour

The input text starts after the prefix, as in 5.x and in Material's text fields. An app that wants end-aligned text (an amount field) still sets textAlign in style.

How to reproduce?

  1. Render a TextInput with a label, a prefix ("$"), a suffix ("/100") and a placeholder.
  2. Focus it, then type.

Your Environment

software version
ios 27.2 (iPhone 18 Pro simulator)
android 13 (emulator)
react-native 0.88.1 (New Architecture)
react-native-paper main
expo sdk 58

Activity

  1. added this to the 6.0.0 milestone on Nov 19, 2026
  2. added a commit that references this issue on Nov 20, 2026
    295f36b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions