Skip to content

Commit

Permalink
fix: show touch feedback on iOS when using custom action sheet (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentuso authored Dec 16, 2024
1 parent d778588 commit 1ce802b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ActionSheet/TouchableNativeFeedbackSafe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TouchableWithoutFeedbackProps,
} from 'react-native';

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

const TouchableComponent = Platform.select({
web: CustomTouchableOpacity,
default: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
default: CustomTouchableOpacity,
android: Platform.Version <= 20 ? CustomTouchableOpacity : TouchableNativeFeedback,
});

type Props = TouchableWithoutFeedbackProps & {
Expand Down

0 comments on commit 1ce802b

Please sign in to comment.