Skip to content

Commit

Permalink
fix: apply accessible prop to touchable in Card.tsx (#4051)
Browse files Browse the repository at this point in the history
meatnordrink authored Sep 4, 2023
1 parent f63db43 commit 451783f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -258,11 +258,7 @@ const Card = ({
};

const content = (
<View
style={[styles.innerContainer, contentStyle]}
testID={testID}
accessible={accessible}
>
<View style={[styles.innerContainer, contentStyle]} testID={testID}>
{React.Children.map(children, (child, index) =>
React.isValidElement(child)
? React.cloneElement(child as React.ReactElement<any>, {
@@ -311,6 +307,7 @@ const Card = ({

{hasPassedTouchHandler ? (
<TouchableWithoutFeedback
accessible={accessible}
delayPressIn={0}
disabled={disabled}
delayLongPress={delayLongPress}

0 comments on commit 451783f

Please sign in to comment.