mloureiro ยท GitHub

name: ๐Ÿ› Bug Report
about: Report a reproducible bug or regression in the core React Native library.

Environment

[skip envinfo]
This is reproducible in the expo playground

Description

Property numberOfLines is not respected when used in a child Text component:

<Text>
  <Text  numberOfLines={1}>{'sometext'.repeat(1000)}</Text>
</Tex>

In this #4733 (comment) @oureta mentions that this does not work, I don't understand if it is expected behavior, or a ๐Ÿ›

According to Text doc the styling has some limitations with inheritance/nesting, although nothing is specified (AFAICT) about the other properties.

Reproducible Demo

https://snack.expo.io/H1IZHzGbN

Read the original on github.com โ†—