Skip to content

Commit e3f5600

Browse files
fix: correct StyleProp type for image style to improve type safety (#435)
* Update types.ts Signed-off-by: Little Meow <atoms-rhombus.3n@icloud.com> * Update types.ts Non AI Signed-off-by: Little Meow <atoms-rhombus.3n@icloud.com> --------- Signed-off-by: Little Meow <atoms-rhombus.3n@icloud.com>
1 parent 064925b commit e3f5600

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type {
22
AccessibilityProps,
33
ViewProps,
44
StyleProp,
5-
ImageStyle,
65
ColorValue,
76
NativeSyntheticEvent,
7+
ViewStyle,
88
} from 'react-native';
99

1010
export type Source = {
@@ -57,7 +57,7 @@ export type Failure = {
5757

5858
export interface TurboImageProps extends AccessibilityProps, ViewProps {
5959
source: Source;
60-
style: StyleProp<ImageStyle>;
60+
style: StyleProp<ViewStyle>;
6161
resizeMode?: ResizeMode;
6262
indicator?: Indicator;
6363
placeholder?: Partial<Placeholder>;

0 commit comments

Comments
 (0)