fix: Android 'Super expression must either be null or a function'

This commit is contained in:
Mitchell Kutchuk committed 2020-03-26 16:26:39 -07:00
1 parent 6fe293d4e2
commit 37156dacf1
1 file changed
+5 -1
@@ -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({