Skip to content

Commit 1ce802b

Browse files
authored
fix: show touch feedback on iOS when using custom action sheet (#329)
1 parent d778588 commit 1ce802b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ActionSheet/TouchableNativeFeedbackSafe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
TouchableWithoutFeedbackProps,
88
} from 'react-native';
99

10-
// This TouchableOpacity has the same staic method of TouchableNativeFeedback
10+
// This TouchableOpacity has the same static method of TouchableNativeFeedback
1111
class CustomTouchableOpacity extends React.Component {
1212
static SelectableBackground = () => ({});
1313
static SelectableBackgroundBorderless = () => ({});
@@ -19,8 +19,8 @@ class CustomTouchableOpacity extends React.Component {
1919
}
2020

2121
const TouchableComponent = Platform.select({
22-
web: CustomTouchableOpacity,
23-
default: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
22+
default: CustomTouchableOpacity,
23+
android: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
2424
});
2525

2626
type Props = TouchableWithoutFeedbackProps & {

0 commit comments

Comments
 (0)