oblador/react-native-collapsible

Adding padding triggers whole Accordion to collapse?

Open

#279 创建于 2019年2月22日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (449 fork)github user discovery
awaiting-replyhelp wanted

仓库指标

Star
 (2,589 star)
PR 合并指标
 (PR 指标待抓取)

描述

 render() {
        return (
            <View style={styles.container}>
                <Accordion
                    sections={this.state.sections}
                    activeSections={this.state.activeSections}
                    renderHeader={this._renderHeader}
                    renderContent={this._renderSectionContent}
                    onChange={this._updateSections.bind(this)}
                />
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
      flex: 1,
      backgroundColor: 'transparent',
      paddingLeft: 15,
      paddingRight: 15,
      paddingTop: 30
    },

So I have the above code embedded into another accordion - but it seems like when I click on the embedded accordion's header it collapses everything incuding the parent accordion....

贡献者指南