Skip to content

Commit 7927b56

Browse files
committed
Fix cyclic warning
1 parent 6733c5b commit 7927b56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/touchableOpacity/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {TouchableOpacity as RNTouchableOpacity, TouchableOpacityProps as RNTouch
33
import _ from 'lodash';
44
import {asBaseComponent, forwardRef, BaseComponentInjectedProps, ForwardRefInjectedProps, ContainerModifiers} from '../../commons/new';
55
// @ts-ignore
6-
import Incubator from '../../incubator';
6+
import IncubatorTouchableOpacity from '../../incubator/TouchableOpacity';
77

88
export type TouchableOpacityProps = RNTouchableOpacityProps & ContainerModifiers & {
99
/**
@@ -101,7 +101,8 @@ class TouchableOpacity extends PureComponent<Props, {active: boolean}> {
101101
const {borderRadius, paddings, margins, alignments, flexStyle} = modifiers;
102102

103103
if (useNative) {
104-
return <Incubator.TouchableOpacity {...this.props}/>;
104+
// @ts-ignore
105+
return <IncubatorTouchableOpacity {...this.props}/>;
105106
}
106107

107108
return (

0 commit comments

Comments
 (0)