oblador / react-native-collapsible

Animated collapsible component for React Native, good for accordions, toggles etc
MIT License
2.43k stars 453 forks source link

renderFooter method not working in react-native-accordium #339

Open vtrioremya opened 4 years ago

vtrioremya commented 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}}>

hai
            </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!