@react-native-oh/react-native-harmony 0.72.29 → 0.72.33
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.
- package/Libraries/Components/Image/Image.harmony.js +2 -3
- package/Libraries/Components/Image/NativeImageLoaderHarmony.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.harmony.tsx +6 -2
- package/Libraries/Components/TextInput/TextInput.harmony.js +2 -2
- package/package.json +2 -2
- package/react_native_openharmony.har +0 -0
|
@@ -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,
|
|
@@ -53,9 +53,13 @@ const getPaddingBottom = (insetBottom: number, insetTop: number, paddingTop: num
|
|
|
53
53
|
return Math.max(0, insetBottom - (windowHeight - pageY));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// if SafeAreaView
|
|
56
|
+
// if SafeAreaView nested and outside of the current viewport - for example in scroll view
|
|
57
|
+
if (height < windowHeight && pageY > 0 && pageY > windowHeight && positionY >= 0) {
|
|
58
|
+
return 0;
|
|
59
|
+
}
|
|
60
|
+
// if SafeAreaView is nested outside of the viewport - but on absolute position
|
|
57
61
|
if (height < windowHeight && pageY > 0 && pageY > windowHeight) {
|
|
58
|
-
return
|
|
62
|
+
return insetBottom;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
// Default case handling scenarios not captured above
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-oh/react-native-harmony",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.33",
|
|
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-24",
|
|
53
53
|
"colors": "^1.4.0",
|
|
54
54
|
"fs-extra": "^11.1.1",
|
|
55
55
|
"metro": "^0.76.3",
|
|
Binary file
|