user3095853
user3095853

Reputation: 3

Correct way to fix number of line in Text

Need only one line in the component Text

I tried this code Text numberOflines={1} ellipsizeMode='tail' style={{color: 'red'}}

Not working, still getting two.

enter image description here

Upvotes: 0

Views: 62

Answers (1)

Auticcat
Auticcat

Reputation: 4489

Typo. it's numberOfLines not numberOflines

Upvotes: 1

Related Questions