@onekeyfe/react-native-native-list 3.0.149 → 3.0.152
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.
|
@@ -1348,6 +1348,7 @@ internal class NativeListRowView(
|
|
|
1348
1348
|
trailingColumn.gravity = Gravity.END or Gravity.CENTER_VERTICAL
|
|
1349
1349
|
trailingColumn.orientation = VERTICAL
|
|
1350
1350
|
trailingColumn.layoutParams = wrap()
|
|
1351
|
+
trailingColumn.clipChildren = true
|
|
1351
1352
|
trailingViews.forEach {
|
|
1352
1353
|
it.visibility = GONE
|
|
1353
1354
|
it.setTag(com.facebook.react.R.id.react_test_id, null)
|
|
@@ -3858,6 +3859,11 @@ internal class NativeListRowView(
|
|
|
3858
3859
|
marginStart = -dp(7)
|
|
3859
3860
|
marginEnd = -dp(7)
|
|
3860
3861
|
}
|
|
3862
|
+
// The frame overhangs its 24dp layout slot by 7dp on each side. The column
|
|
3863
|
+
// clips children and the row clips to padding by default, which would cut
|
|
3864
|
+
// the pressed circle down to a 24dp-wide pill.
|
|
3865
|
+
trailingColumn.clipChildren = false
|
|
3866
|
+
clipToPadding = false
|
|
3861
3867
|
if (isSourceMenu && data.optString("actionKey").isNotEmpty()) {
|
|
3862
3868
|
icon.background = StateListDrawable().apply {
|
|
3863
3869
|
addState(
|
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.152",
|
|
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.152",
|
|
87
|
+
"@onekeyfe/react-native-native-logger": "3.0.152",
|
|
88
88
|
"react": "*",
|
|
89
89
|
"react-native": "*",
|
|
90
90
|
"react-native-nitro-modules": "0.37.0"
|