@react-native-oh/react-native-harmony 0.72.29-4 → 0.72.29-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,15 +77,14 @@ function prefetchWithMetadata(
|
|
|
77
77
|
rootTag ? rootTag : 0,
|
|
78
78
|
);
|
|
79
79
|
} else {
|
|
80
|
-
|
|
81
|
-
return NativeImageLoaderHarmony.prefetchImage(url, requestId);
|
|
80
|
+
return NativeImageLoaderHarmony.prefetchImage(url);
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
function prefetch(url: string, callback: ?(requestId: number) => void): any {
|
|
86
85
|
const requestId = generateRequestId();
|
|
87
86
|
callback && callback(requestId);
|
|
88
|
-
return NativeImageLoaderHarmony.prefetchImage(url
|
|
87
|
+
return NativeImageLoaderHarmony.prefetchImage(url);
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
function abortPrefetch(requestId: number): void {
|
|
@@ -25,7 +25,7 @@ export interface Spec extends TurboModule {
|
|
|
25
25
|
height: number,
|
|
26
26
|
...
|
|
27
27
|
}>;
|
|
28
|
-
+prefetchImage: (uri: string
|
|
28
|
+
+prefetchImage: (uri: string) => Promise<boolean>;
|
|
29
29
|
+prefetchImageWithMetadata?: (
|
|
30
30
|
uri: string,
|
|
31
31
|
queryRootName: string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-oh/react-native-harmony",
|
|
3
|
-
"version": "0.72.29-
|
|
3
|
+
"version": "0.72.29-6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"./*.har"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@react-native-oh/react-native-harmony-cli": "^0.0.26
|
|
52
|
+
"@react-native-oh/react-native-harmony-cli": "^0.0.26",
|
|
53
53
|
"colors": "^1.4.0",
|
|
54
54
|
"fs-extra": "^11.1.1",
|
|
55
55
|
"metro": "^0.76.3",
|
|
Binary file
|