Skip to main content

List

A container that presents rows of data arranged in a single column.

Example​

Static​

<List>
<Text>List Item</Text>
<Text>List Item</Text>
<Text>List Item</Text>
</List>

Dynamic​

const options = ['Option 1', 'Option 2', 'Option 3'];
<List>
{ForEach(options, (option) => (
<Text key={option}>{option}</Text>
))}
</List>

Props​

List inherits all View Modifiers as props.

propdescriptiontyperequireddefault
childrenList contentReactNodenonull