Skip to content

TextInput doesn't truncates text #19873

Description

@mnsrv

Environment

Run react-native info in your terminal and paste its contents here.

Environment:
OS: macOS High Sierra 10.13.4
Node: 9.8.0
Yarn: 1.6.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)
react: ^16.3.1 => 16.4.0
react-native: ^0.55.1 => 0.55.4

Description

TextInput with value prop doesn't truncates text. TextInput without value prop truncates text as expected.

<TextInput
  value={this.state.inputValue}
  onChangeText={this._handleTextChange}
  style={styles.firstInput}
/>
<TextInput
  style={styles.secondInput}
/>

textinput

Reproducible Demo

https://snack.expo.io/BkduYDAbQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TextInputRelated to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions