Skip to content

Commit

Permalink
fix: Android 'Super expression must either be null or a function'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitch528 committed Mar 26, 2020
1 parent 6fe293d commit 37156da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ActionSheet/TouchableNativeFeedbackSafe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ import {
} from 'react-native';

// This TouchableOpacity has the same staic method of TouchableNativeFeedback
class CustomTouchableOpacity extends TouchableOpacity {
class CustomTouchableOpacity extends React.Component {
static SelectableBackground = () => ({});
static SelectableBackgroundBorderless = () => ({});
static Ripple = (color: string, borderless?: boolean) => ({});

render() {
return <TouchableOpacity {...this.props}>{this.props.children}</TouchableOpacity>;
}
}

const TouchableComponent = Platform.select({
Expand Down

0 comments on commit 37156da

Please sign in to comment.