ExpandableSection
Component to render expanded section below or above the SectionHeader
(code example)
Usageβ
Live Editor
<ExpandableSection top expanded={false} sectionHeader={<Text grey10 text60>The section header</Text>} onPress={() => console.log('pressed')} >
Result
Loading...
APIβ
childrenβ
The expandable's children
React.ReactNode
expandedβ
Should the ExpandableSection be expanded
boolean
minHeightβ
Set a minimum height for the expandableSection. If the children height is less than the minHeight, the expandableSection will collapse to that height. If the children height is greater than the minHeight, the expandableSection will result with only the children rendered (sectionHeader will not be rendered)
number
onPressβ
Called when pressing the header of the ExpandableSection
() => void
sectionHeaderβ
Header element
JSX.Element
testIDβ
testing identifier
string
topβ
Should it open above the 'sectionHeader'
boolean