Skip to content

Commit 43abbd3

Browse files
committed
Fix exported Image static types
1 parent 73361e0 commit 43abbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generatedTypes/components/image/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ declare const _default: React.ComponentClass<RNImageProps & Partial<Record<"marg
132132
errorSource?: number | import("react-native").ImageURISource | import("react-native").ImageURISource[] | undefined;
133133
} & {
134134
useCustomTheme?: boolean | undefined;
135-
}, any>;
135+
}, any> & typeof Image;
136136
export default _default;

src/components/image/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,4 @@ const styles = StyleSheet.create({
213213

214214
hoistNonReactStatic(Image, RNImage);
215215
export {Image};
216-
export default asBaseComponent<ImageProps>(Image);
216+
export default asBaseComponent<ImageProps, typeof Image>(Image);

0 commit comments

Comments
 (0)