Skip to content

[iOS] Non-editable, Multiline TextInput chops text on Re-Render #15142

Closed
@trblandford4

Description

@trblandford4

Is this a bug report?

Yes.

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.46.4
  2. node -v: v7.7.2
  3. npm -v: 4.1.2

Then, specify:

  • Target Platform: iOS

  • Development Operating System: macOS Sierra v10.12.5

Steps to Reproduce

(Write your steps here:)

  1. Create TextInput with long, multiline text value, set editable to false
  2. Create Text with same value as above
  3. Toggle between the two components using state change

Expected Behavior

Long text appears as scrollable and fully created inside disabled TextInput, as it would in an editable TextInput or plain Text.

Actual Behavior

Text is cut short, like this :

screen shot 2017-07-21 at 11 58 28 am

Reproducible Demo

https://snack.expo.io/BkX2enyUZ

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