Section
A container view that you can use to add hierarchy within certain views.
info
Currently, Section
is only supported in List
.
Example​
- swiftui-react-native
- SwiftUI
<List>
<Section header="This is a header">
<Text>List Item</Text>
<Text>List Item</Text>
<Text>List Item</Text>
</Section>
</List>
List {
Text("List Item")
Text("List Item")
Text("List Item")
} header: {
Text("This is a header")
}
Props​
List inherits all View Modifiers as props.
prop | description | type | required | default |
---|---|---|---|---|
children | List content | ReactNode | no | null |
header | Section header | string | no | undefined |
footer | Section footer | string | no | undefined |