1
1
import isUndefined from 'lodash/isUndefined' ;
2
2
import React , { useMemo , forwardRef } from 'react' ;
3
- import { Image , ImageProps , StyleSheet , StyleProp , ViewStyle } from 'react-native' ;
3
+ import { Image , ImageProps as RNImageProps , StyleSheet , StyleProp , ViewStyle } from 'react-native' ;
4
4
import { asBaseComponent , BaseComponentInjectedProps , MarginModifiers , Constants } from '../../commons/new' ;
5
5
import { ComponentStatics } from '../../typings/common' ;
6
6
import { getAsset , isSvg , isBase64ImageContent } from '../../utils/imageUtils' ;
7
7
import { RecorderProps } from '../../typings/recorderTypes' ;
8
8
import Badge , { BadgeProps } from '../badge' ;
9
9
import SvgImage from '../svgImage' ;
10
- import type { ImageSourceType } from '../image' ;
10
+ import type { ImageProps } from '../image' ;
11
11
12
- export type IconProps = Omit < ImageProps , 'source' > &
12
+ export type IconProps = Omit < RNImageProps , 'source' > &
13
13
MarginModifiers &
14
14
RecorderProps & {
15
15
/**
@@ -36,7 +36,7 @@ export type IconProps = Omit<ImageProps, 'source'> &
36
36
* whether the icon should flip horizontally on RTL
37
37
*/
38
38
supportRTL ?: boolean ;
39
- source ?: ImageSourceType
39
+ source ?: ImageProps [ 'source' ] ;
40
40
} ;
41
41
42
42
/**
0 commit comments