@onekeyfe/react-native-native-list 3.0.179-alpha.20261015 → 3.0.179-alpha.2026101502
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/lib/module/NativeList.js +1 -1
- package/package.json +3 -3
- package/src/NativeList.tsx +1 -1
package/lib/module/NativeList.js
CHANGED
|
@@ -54,7 +54,7 @@ export const NativeList = /*#__PURE__*/forwardRef(function NativeList({
|
|
|
54
54
|
}, forwardedRef) {
|
|
55
55
|
const [slotHeights, setSlotHeights] = useState([0, 0, 0]);
|
|
56
56
|
const [topOverlayHeight, setTopOverlayHeight] = useState(0);
|
|
57
|
-
const hasTopOverlay = Platform?.OS === 'ios' &&
|
|
57
|
+
const hasTopOverlay = Platform?.OS === 'ios' && parseInt(String(Platform.Version), 10) >= 26 && topScrollEdgeEffect === 'hard' && topOverlay != null;
|
|
58
58
|
const containerSlotHeightsJson = JSON.stringify(slotHeights);
|
|
59
59
|
const slotInset = snapshot.layout.contentPaddingHorizontal ?? snapshot.layout.contentPadding ?? 0;
|
|
60
60
|
if (snapshot.layout.orientation === 'horizontal' && (listHeader || listEmpty || listFooter)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-list",
|
|
3
|
-
"version": "3.0.179-alpha.
|
|
3
|
+
"version": "3.0.179-alpha.2026101502",
|
|
4
4
|
"description": "Template-driven native RecyclerView and UICollectionView for React Native",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/module/index.js",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"typescript": "^5.9.2"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@onekeyfe/react-native-image": "3.0.179-alpha.
|
|
91
|
-
"@onekeyfe/react-native-native-logger": "3.0.179-alpha.
|
|
90
|
+
"@onekeyfe/react-native-image": "3.0.179-alpha.2026101502",
|
|
91
|
+
"@onekeyfe/react-native-native-logger": "3.0.179-alpha.2026101502",
|
|
92
92
|
"react": "*",
|
|
93
93
|
"react-native": "*",
|
|
94
94
|
"react-native-nitro-modules": "0.37.0"
|
package/src/NativeList.tsx
CHANGED
|
@@ -129,7 +129,7 @@ export const NativeList = forwardRef<NativeListRef, NativeListProps>(
|
|
|
129
129
|
const [topOverlayHeight, setTopOverlayHeight] = useState(0);
|
|
130
130
|
const hasTopOverlay =
|
|
131
131
|
Platform?.OS === 'ios' &&
|
|
132
|
-
|
|
132
|
+
parseInt(String(Platform.Version), 10) >= 26 &&
|
|
133
133
|
topScrollEdgeEffect === 'hard' &&
|
|
134
134
|
topOverlay != null;
|
|
135
135
|
const containerSlotHeightsJson = JSON.stringify(slotHeights);
|