Open vtrioremya opened 4 years ago
Please review my code:
renderFooter = (section, _, isActive) => { console.log("FOOTER SECTIONSS====================",section) return ( <Animatable.View duration={400} style={[styles.header, isActive ? styles.active : styles.inactive]} transition="backgroundColor" > <View style={{height:100, backgroundColor:'red',width:width/1.15}}>
</View> </Animatable.View> );
};
render(){ return( <Accordion activeSections={activeSections} sections={this.state.accArray} touchableComponent={TouchableOpacity} expandMultiple={multipleSelect} renderHeader= {this.renderHeader} renderContent={this.renderContent} renderFooter={this.renderFooter} duration={400} onChange={this.setSections} /> ) };
Here, all other functions works properly except renderFooter. Please help!
Please review my code:
renderFooter = (section, _, isActive) => { console.log("FOOTER SECTIONSS====================",section) return ( <Animatable.View duration={400} style={[styles.header, isActive ? styles.active : styles.inactive]} transition="backgroundColor" > <View style={{height:100, backgroundColor:'red',width:width/1.15}}>
};
render(){ return( <Accordion activeSections={activeSections} sections={this.state.accArray} touchableComponent={TouchableOpacity} expandMultiple={multipleSelect} renderHeader= {this.renderHeader} renderContent={this.renderContent} renderFooter={this.renderFooter} duration={400} onChange={this.setSections} /> ) };
Here, all other functions works properly except renderFooter. Please help!