我正在寻找最好的库来为我的react-native应用程序实现手风琴Listview。我知道有几个库可用。但是,我仍然不知道在缩放和实施方面哪一个最适合手风琴。有什么建议吗?
到目前为止我使用过很多手风琴,但我推荐的最好的是React Native Collapsible。它有许多强大的功能和易于使用的API。开发人员还提供对问题的快速响应,并且社区积极维护回购。
看看this one:
import Accordion from 'react-native-collapsible/Accordion';
<Accordion
sections={['Section 1', 'Section 2', 'Section 3']}
renderSectionTitle={this._renderSectionTitle}
renderHeader={this._renderHeader}
renderContent={this._renderContent}
/>;