Skip to content

Commit 1283bd5

Browse files
committed
fix: icon non-selectable on the web like on other platforms
Small part of callstack/react-native-paper#2283 did not get merged.
1 parent 9184ec6 commit 1283bd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/MaterialCommunityIcon.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ try {
4545
style={[styles.icon, { color, fontSize: size }]}
4646
// @ts-ignore
4747
pointerEvents="none"
48+
selectable={false}
4849
>
4950
5051
</Text>
@@ -83,6 +84,7 @@ const defaultIcon = ({
8384
styles.icon,
8485
]}
8586
pointerEvents="none"
87+
selectable={false}
8688
{...accessibilityProps}
8789
/>
8890
);

0 commit comments

Comments
 (0)