Description
Hi,
I noticed a potential bug which results in missing ellipsis on iOS when limiting lines on the Text component if passed text contains line breaks (\n).
The text is being truncated properly to the set numberOfLines but it's missing the ... at the end (ellipsizeMode set to tail).

React Native Version
0.72.6
Output of npx react-native info
Bug reproducible at https://snack.expo.dev/QXsCyRwYN
Expo 49.0
Steps to reproduce
- Import React Native
Text component
- Use component e.g.
<Text numberOfLines={2} ellipsizeMode="tail">
{text}
</Text>
- Set
text const as e.g.
const text = "Change code \n in the editor and \n watch it change on your phone!"
- Run code on iOS
*The text should contain at least the same number of line breaks (\n) as the set limit in the numberOfLines prop
Snack, screenshot, or link to a repository
https://snack.expo.dev/QXsCyRwYN
Description
Hi,

I noticed a potential bug which results in missing ellipsis on iOS when limiting lines on the
Textcomponent if passed text contains line breaks (\n).The text is being truncated properly to the set
numberOfLinesbut it's missing the...at the end (ellipsizeModeset totail).React Native Version
0.72.6
Output of
npx react-native infoBug reproducible at https://snack.expo.dev/QXsCyRwYN
Expo 49.0
Steps to reproduce
Textcomponenttextconst as e.g.*The text should contain at least the same number of line breaks (
\n) as the set limit in thenumberOfLinespropSnack, screenshot, or link to a repository
https://snack.expo.dev/QXsCyRwYN