Skip to content

ellipsizeMode on Text component does not work #1336

Open
@aalises

Description

@aalises

The problem
ellipsizeMode on Text component does not work. the produced css is always text-overflow: ellipsis regardless of the value of the ellipsizeMode e.g ellipsizeMode: "clip".

How to reproduce

Example: https://codesandbox.io/embed/mo1ylwmp08

Steps to reproduce:

  1. Create a clipped text with ellipsizeMode different than tail
<Text numberOfLines={1} ellipsizeMode="clip" > Example Text </Text>
  1. The text is always clipped with ellipsis regardless of the mode (head, clip...)

Expected behavior
ellipsizeMode = "clip" generates text-overflow: clip, for example, and not text-overflow: ellipsis ...

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.11.x
  • React (version): 16.8.4
  • Browser: Google Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions