Skip to content

Commit d4b74ee

Browse files
committed
fix: color values
1 parent 55ba59a commit d4b74ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
ViewStyle,
1919
TextStyle,
2020
RegisteredStyle,
21-
AccessibilityProps,
21+
AccessibilityProps, ColorValue,
2222
} from 'react-native'
2323

2424
const FastImageViewNativeModule = NativeModules.FastImageView
@@ -31,7 +31,7 @@ function isRegisteredStyle<T>(
3131
if (typeof style === "object" && style != null)
3232
return "__registeredStyleBrand" in style;
3333
else return false;
34-
};
34+
}
3535

3636

3737
function findStyle<
@@ -76,7 +76,7 @@ function findStyle<
7676
return undefined;
7777
}
7878
}
79-
};
79+
}
8080

8181
function areShallowEqual(left: Record<string, unknown>, right: Record<string, unknown>): boolean {
8282
if (left == null && right != null) return false;
@@ -150,14 +150,14 @@ export interface ImageStyle extends FlexStyle, TransformsStyle, ShadowStyleIOS {
150150
backfaceVisibility?: 'visible' | 'hidden'
151151
borderBottomLeftRadius?: number
152152
borderBottomRightRadius?: number
153-
backgroundColor?: string
154-
borderColor?: string
153+
backgroundColor?: ColorValue
154+
borderColor?: ColorValue
155155
borderWidth?: number
156156
borderRadius?: number
157157
borderTopLeftRadius?: number
158158
borderTopRightRadius?: number
159-
overlayColor?: string
160-
tintColor?: string
159+
overlayColor?: ColorValue
160+
tintColor?: ColorValue
161161
opacity?: number
162162
}
163163

@@ -197,7 +197,7 @@ export interface FastImageProps extends AccessibilityProps, ViewProps {
197197
* If supplied, changes the color of all the non-transparent pixels to the given color.
198198
*/
199199

200-
tintColor?: number | string
200+
tintColor?: ColorValue
201201

202202
/**
203203
* A unique identifier for this element to be used in UI Automation testing scripts.

0 commit comments

Comments
 (0)