Closed SrBrahma closed 2 years ago
Text could accept an array of texts, e.g.:
<Text t={['Header: ', 'Value']}/>
For setting the style for an individual item, we could:
<Text t={[ {s: s.header, t: 'Header: '}, {s: s.value, t: 'Value'} ]}/>
, being the style optional.
This would create a parent Text with each array item as a Text child.
What would be the use of data being string[] that a template string couldn't do?
Added in 0.57.0. Array of objects. Found no use to have an array of strings.
Text could accept an array of texts, e.g.:
For setting the style for an individual item, we could:
, being the style optional.
This would create a parent Text with each array item as a Text child.