mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Temporarily back out ImageLoaderModule type extraction (#41547)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41547 # Changelog: [Internal]- Pending figuring out why it might break backwards compatibility (which it shouldn't, in practice). Reviewed By: GijsWeterings Differential Revision: D51447646 fbshipit-source-id: c3a4511badc6c1346655f3a1a20050ad719b095b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
73411f4e08
commit
917fd25cbb
@@ -12,16 +12,24 @@ import type {TurboModule} from '../TurboModule/RCTExport';
|
||||
|
||||
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
|
||||
|
||||
export type ImageSize = {|
|
||||
width: number,
|
||||
height: number,
|
||||
|};
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
+abortRequest: (requestId: number) => void;
|
||||
+getConstants: () => {||};
|
||||
+getSize: (uri: string) => Promise<ImageSize>;
|
||||
+getSizeWithHeaders: (uri: string, headers: Object) => Promise<ImageSize>;
|
||||
+getSize: (uri: string) => Promise<
|
||||
$ReadOnly<{
|
||||
width: number,
|
||||
height: number,
|
||||
...
|
||||
}>,
|
||||
>;
|
||||
+getSizeWithHeaders: (
|
||||
uri: string,
|
||||
headers: Object,
|
||||
) => Promise<{
|
||||
width: number,
|
||||
height: number,
|
||||
...
|
||||
}>;
|
||||
+prefetchImage: (uri: string, requestId: number) => Promise<boolean>;
|
||||
+queryCache: (uris: Array<string>) => Promise<Object>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user