Reputation: 3
Need only one line in the component Text
I tried this code Text numberOflines={1} ellipsizeMode='tail' style={{color: 'red'}}
Text numberOflines={1} ellipsizeMode='tail' style={{color: 'red'}}
Not working, still getting two.
Upvotes: 0
Views: 62
Reputation: 4489
Typo. it's numberOfLines not numberOflines
numberOfLines
numberOflines
Upvotes: 1