I just want to know the default-value for numberOfLines
attribute of the Text
component ? something like 'auto' or 'initial' ...
<Text numberOfLines={selected ? 0 : 1}>{term}</Text>
term
can some short or long Arabic text
const term = 'هذه الكلمات مكتوبه باللغه العربيه';
Any help ?
The default value of numberOfLines
in <Text>
component is:
undefined
, which means:
So,
To show all lines , we should instead omit the prop or explicitly set numberOfLines={undefined}
.