Skip to content

Releases: oblador/react-native-collapsible

1.1.0

04 Oct 17:19
Compare
Choose a tag to compare

Features

1.0.1

28 Sep 03:48
3392a03
Compare
Choose a tag to compare

Bug fixes

  • fix(types): Add onAnimationEnd to props 5b0243d @nicomontanari98

1.0.0

24 Sep 05:27
Compare
Choose a tag to compare

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

22 Jul 17:10
8a18950
Compare
Choose a tag to compare

Bug fixes

  • Fixes warnings for react 16.3 deprecated methods 2c135ab @peacechen
  • Fix example app not running

0.12.0

07 Jun 11:08
a975d22
Compare
Choose a tag to compare

Features

  • Adds onAnimationEnd prop to signal when the collapse animation is over 3a600ca @EyMaddis

Bug Fixes

0.11.3

16 May 00:40
ed6283a
Compare
Choose a tag to compare

Bug Fixes

Misc

  • Example app is now an expo/create-react-native-app app

0.11.2

25 Apr 01:18
175492f
Compare
Choose a tag to compare

Fixed bug #168, released in 0.11.0 as a result of #147.

0.11.1

23 Apr 00:31
c5e2887
Compare
Choose a tag to compare

Primarily fixes issues with moving the typescript definitions locally.

Bug Fixes

Misc

  • (docs) Add style and expandFromBottom props to README

0.11.0

15 Apr 18:36
5e57f67
Compare
Choose a tag to compare

New Features

  • Accordion Adds renderSectionTitle prop 5556469 @jeffreymendez1993
  • Accordion Adds expandFromBottom prop 85bade3 @iRoachie

Bug Fixes

Misc

  • Accordion Friendlier error when passing in invalid sections prop @iRoachie
  • Add Typescript definitions @iRoachie

0.10.0

08 Jan 18:32
637775b
Compare
Choose a tag to compare

New Features

Bug fixes

  • Correctly redraw Collapsible after content updated d217724 @wxsms