Animated collapsible component for React Native, good for accordions, toggles etc
Accordion
as a FlatList
for better performance of long lists by passing the renderAsFlatlist={true}
.renderChildrenCollapsed={false}
height
was undefined.renderFooter
would always need to be set https://github.com/oblador/react-native-collapsible/commit/e615cee568cf3c08010ce410fe9f6790eaa9381c @svbutkorenderFooter
prop to Accordion https://github.com/oblador/react-native-collapsible/commit/1be890e20897cb473c73ef7325eacea87ea3e175 @WeiLiangTandisabled
prop to typescript definitions on Accordion https://github.com/oblador/react-native-collapsible/commit/6eb0c92a4fa9fe30cc1c1ea909676c3a1a4e8763 @leiter84containerStyle
prop to Accordion https://github.com/oblador/react-native-collapsible/commit/a466be524e1e3bee6abb832f8aaeb61cd13d5bb8 @jessedoylePartially revert https://github.com/oblador/react-native-collapsible/commit/40d9c461e69fd3281cbf33ec72eb57df3be64911 to fix errors on ci in https://github.com/oblador/react-native-collapsible/issues/252.
By default, the collapsible disables touch events while collapsing to prevent touches while the animation is closing or opening. Some persons expressed a need to override this behaviour.
While during the collapse animation a user might navigate away from the screen and inadvertently unmount the component. However, the animation will still complete and attempt to setState. This would throw a warning that you shouldn't update an unmounted component.