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 ?
There's no default value for numberOfLines. If you want to have infinite numberOfLines based of condition you can just put the number 0 to it:
numberOfLines={someCondition ? 1 : 0}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With