Releases: oblador/react-native-collapsible
1.1.0
1.0.1
1.0.0
Multiple Expanded Sections are here!
One of the most requested features was added in this release - the ability to have open multiple sections in the Accordion. Be sure to check the example app to see it in action.
To facilitate this; two new props were added.
expandMultiple
- Allows expanding multiple sections
activeSections
- An array of active sections (index)
Props to @jdonald 🎉
⚠️ Breaking Changes ⚠️
All the changes below are for the Accordion
activeSection
is now deprecated.
Since we allow for multiple sections now, you'll need to use the new activeSections
prop instead which is an array of indices.
Before | After |
---|---|
<Accordion activeSection={0} /> |
<Accordion activeSections={[0]} /> |
onChange
now returns an array of indices.
Previously onChange
would've returned the current index that was active. This change is related to multiple expanded sections.
Before | After |
---|---|
<Accordion onChange={section => // 0} /> |
<Accordion onChange={sections => // [0]} /> |
initiallyActiveSection
is now deprecated.
Setting an initial section to be active is now as easy as using setting the activeSections
prop to the index you want.
Before | After |
---|---|
<Accordion initialActiveSection={2} /> |
<Accordion activeSections={[2]} /> |
Misc
- Updated Example app to expo sdk v30
0.13.0
0.12.0
0.11.3
0.11.2
0.11.1
Primarily fixes issues with moving the typescript definitions locally.
Bug Fixes
- (typescript)
Collapsible
Add style prop e34b3d120c8bbdcd562610bce06bd467692d2105zz - (typescript)
Accordion
Make renderSectionTitle optional cb934c5 - (typescript)
Accordion
Add touchableComponent and touchableProps 285c871
Misc
- (docs) Add
style
andexpandFromBottom
props to README
0.11.0
New Features
Accordion
AddsrenderSectionTitle
prop 5556469 @jeffreymendez1993Accordion
AddsexpandFromBottom
prop 85bade3 @iRoachie
Bug Fixes
Collapsible
Re-measure the height of the content correctly when layout changes 117f7a1 @eduardomoroni