Skip to content

Commit 451783f

Browse files
authored
fix: apply accessible prop to touchable in Card.tsx (#4051)
1 parent f63db43 commit 451783f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/Card/Card.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,7 @@ const Card = ({
258258
};
259259

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

312308
{hasPassedTouchHandler ? (
313309
<TouchableWithoutFeedback
310+
accessible={accessible}
314311
delayPressIn={0}
315312
disabled={disabled}
316313
delayLongPress={delayLongPress}

0 commit comments

Comments
 (0)