Skip to content

Commit fcc9167

Browse files
committed
Fixes TouchableOpacity mandatory props error
1 parent e4e5a7f commit fcc9167

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/touchableOpacity/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
ForwardRefInjectedProps,
1515
ContainerModifiers
1616
} from '../../commons/new';
17-
// @ts-ignore
1817
import IncubatorTouchableOpacity from '../../incubator/TouchableOpacity';
1918

2019

@@ -50,7 +49,7 @@ export type TouchableOpacityProps = Omit<RNTouchableOpacityProps, 'style' | 'onP
5049

5150
type Props = BaseComponentInjectedProps &
5251
ForwardRefInjectedProps &
53-
TouchableOpacityProps;
52+
Partial<TouchableOpacityProps>;
5453

5554
/**
5655
* @description: A wrapper for TouchableOpacity component. Support onPress, throttling and activeBackgroundColor

typings/components/TouchableOpacity.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import {TouchableOpacityProps as RNTouchableOpacityProps} from 'react-native';
33
import {PureBaseComponent} from '../commons';
4-
import {AlignmentModifiers, FlexModifiers} from '../modifiers';
4+
import {AlignmentModifiers, FlexModifiers} from '../../src/commons/modifiers';
55
import {ColorValue} from '../style/colors';
66

77
export interface TouchableOpacityThrottleOptions {

0 commit comments

Comments
 (0)