Environment
[skip envinfo]
Description
When passing a string that terminates in a newline ${'\n'} to a Text component, the number of rendered lines will be one greater than the numberOfLines attribute applied when the string is not truncated due to length.
Reproducible Demo
Some View:
import{Text}from'react-native'
...
render(){return(<TextnumberOfLines={1}>{`Line One ${'\n'}`}</Text>)}
Environment
[skip envinfo]
Description
When passing a string that terminates in a newline
${'\n'}to aTextcomponent, the number of rendered lines will be one greater than thenumberOfLinesattribute applied when the string is not truncated due to length.Reproducible Demo
Some View: