Skip to content

Commit 97356f5

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/touchableOpacity/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type TouchableOpacityProps = Omit<RNTouchableOpacityProps, 'style' | 'onP
5050

5151
type Props = BaseComponentInjectedProps &
5252
ForwardRefInjectedProps &
53-
TouchableOpacityProps;
53+
Partial<TouchableOpacityProps>;
5454

5555
/**
5656
* @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)