From 7d7d2a4f9e39a43f61488d6d95dba3799849973c Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Sun, 30 Oct 2022 21:36:40 -0400 Subject: [PATCH] fix: use ColorValue type --- src/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 8cbaab7c2..478c629e9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,6 +14,7 @@ import { Platform, AccessibilityProps, ViewProps, + ColorValue, } from 'react-native' export type ResizeMode = 'contain' | 'cover' | 'stretch' | 'center' @@ -116,7 +117,7 @@ export interface FastImageProps extends AccessibilityProps, ViewProps { * If supplied, changes the color of all the non-transparent pixels to the given color. */ - tintColor?: number | string + tintColor?: ColorValue /** * A unique identifier for this element to be used in UI Automation testing scripts. @@ -178,7 +179,7 @@ function FastImageBase({