File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
Platform ,
15
15
AccessibilityProps ,
16
16
ViewProps ,
17
+ ColorValue ,
17
18
} from 'react-native'
18
19
19
20
export type ResizeMode = 'contain' | 'cover' | 'stretch' | 'center'
@@ -116,7 +117,7 @@ export interface FastImageProps extends AccessibilityProps, ViewProps {
116
117
* If supplied, changes the color of all the non-transparent pixels to the given color.
117
118
*/
118
119
119
- tintColor ?: number | string
120
+ tintColor ?: ColorValue
120
121
121
122
/**
122
123
* A unique identifier for this element to be used in UI Automation testing scripts.
@@ -178,7 +179,7 @@ function FastImageBase({
178
179
< View style = { [ styles . imageContainer , style ] } ref = { forwardedRef } >
179
180
< Image
180
181
{ ...props }
181
- style = { [ StyleSheet . absoluteFill , { tintColor : tintColor as any } ] }
182
+ style = { [ StyleSheet . absoluteFill , { tintColor } ] }
182
183
source = { resolvedSource }
183
184
defaultSource = { defaultSource }
184
185
onLoadStart = { onLoadStart }
You can’t perform that action at this time.
0 commit comments