react-native-collapsible icon indicating copy to clipboard operation
react-native-collapsible copied to clipboard

renderContent is being called for the all sections

Open ilkerceng opened this issue 4 years ago • 0 comments

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>
        );
    }

ilkerceng avatar May 27 '20 22:05 ilkerceng