@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.
@@ -77,15 +77,14 @@ function prefetchWithMetadata(
77
77
  rootTag ? rootTag : 0,
78
78
  );
79
79
  } else {
80
- const requestId = generateRequestId();
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, requestId);
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, requestId: number) => Promise<boolean>;
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 is not topped and not full height and is nested
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 Math.max(0, insetBottom);
62
+ return insetBottom;
59
63
  }
60
64
 
61
65
  // Default case handling scenarios not captured above
@@ -1202,8 +1202,8 @@ function InternalTextInput(props: Props): React.Node {
1202
1202
  inputRef.current,
1203
1203
  mostRecentEventCount,
1204
1204
  '',
1205
- 0,
1206
- 0,
1205
+ -1,
1206
+ -1,
1207
1207
  );
1208
1208
  }
1209
1209
  },
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.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-20",
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