oblador / react-native-collapsible

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

renderContent is being called for the all sections #352

Open ilkerceng opened 4 years ago

ilkerceng commented 4 years ago

I have just added a console.log in renderContent, and i see that renderContent is called as many as length of the sections. I think it should be called just for the the active sections.

    renderContent(section, _, isActive) {
        console.log("MOUNTED");
        return (
            <View style={{ flex: 1 }}>
                <Text>TEST</Text>
            </View>
        );
    }