@onekeyfe/react-native-native-list 3.0.149 → 3.0.151
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/ios/NativeListCell.swift +5 -2
- package/package.json +3 -3
package/ios/NativeListCell.swift
CHANGED
|
@@ -835,10 +835,13 @@ final class NativeListCell: UICollectionViewCell {
|
|
|
835
835
|
super.layoutSubviews()
|
|
836
836
|
if let item = currentItem, item.type == "system", item.data.string("presentation") == "market",
|
|
837
837
|
["noMatch", "retry"].contains(item.data.string("variant")), !titleLabel.isHidden {
|
|
838
|
-
|
|
838
|
+
titleLabel.transform = .identity
|
|
839
|
+
// Settle each nested stack before measuring; the content view alone can leave stale descendant frames.
|
|
839
840
|
contentView.layoutIfNeeded()
|
|
841
|
+
rootStack.layoutIfNeeded()
|
|
842
|
+
mainStack.layoutIfNeeded()
|
|
843
|
+
titleRowStack.layoutIfNeeded()
|
|
840
844
|
// React Native floors text origins to physical pixels after centering the line box.
|
|
841
|
-
titleLabel.transform = .identity
|
|
842
845
|
let scale = max(1, window?.screen.scale ?? traitCollection.displayScale)
|
|
843
846
|
let origin = titleLabel.convert(titleLabel.bounds, to: contentView).origin
|
|
844
847
|
let x = floor((contentView.bounds.width - titleLabel.bounds.width) / 2 * scale) / scale
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-list",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.151",
|
|
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",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"typescript": "^5.9.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@onekeyfe/react-native-image": "3.0.
|
|
87
|
-
"@onekeyfe/react-native-native-logger": "3.0.
|
|
86
|
+
"@onekeyfe/react-native-image": "3.0.151",
|
|
87
|
+
"@onekeyfe/react-native-native-logger": "3.0.151",
|
|
88
88
|
"react": "*",
|
|
89
89
|
"react-native": "*",
|
|
90
90
|
"react-native-nitro-modules": "0.37.0"
|