We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653cdd5 commit 27d282fCopy full SHA for 27d282f
src/components/expandableSection/index.tsx
@@ -95,13 +95,15 @@ function ExpandableSection(props: ExpandableSectionProps) {
95
);
96
};
97
98
+ const Container = onPress ? TouchableOpacity : View;
99
+
100
if (shouldShowSectionHeader) {
101
return (
102
<View style={styles.hidden}>
103
{top && renderChildren()}
- <TouchableOpacity onPress={onPress} testID={testID} accessibilityState={accessibilityState}>
104
+ <Container onPress={onPress} testID={testID} accessibilityState={accessibilityState}>
105
{sectionHeader}
- </TouchableOpacity>
106
+ </Container>
107
{!top && renderChildren()}
108
</View>
109
0 commit comments