@onekeyfe/react-native-native-list 3.0.112 → 3.0.114
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.
|
@@ -2494,9 +2494,15 @@ internal class NativeListRowView(
|
|
|
2494
2494
|
}
|
|
2495
2495
|
val visibleSources = sources.take(leadingImages.size)
|
|
2496
2496
|
val tokenPair = kind == "token" && visibleSources.size > 1
|
|
2497
|
-
|
|
2498
|
-
|
|
2497
|
+
val hasAccountSelectorBadge =
|
|
2498
|
+
kind == "account" &&
|
|
2499
|
+
(tag as? NativeListItem)?.json?.optString("presentation") == "accountSelector" &&
|
|
2500
|
+
(visual.optJSONArray("overlays")?.length() ?: 0) > 0
|
|
2501
|
+
if (tokenPair || hasAccountSelectorBadge) {
|
|
2502
|
+
// Network badges intentionally extend past the avatar frame.
|
|
2499
2503
|
clipChildren = false
|
|
2504
|
+
}
|
|
2505
|
+
if (tokenPair) {
|
|
2500
2506
|
leadingOverlayBackground.visibility = VISIBLE
|
|
2501
2507
|
leadingOverlayBackground.background = roundedFill(visualBackdropColor, 10f)
|
|
2502
2508
|
leadingOverlayBackground.layoutParams = FrameLayout.LayoutParams(
|
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.114",
|
|
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",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "^5.9.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@onekeyfe/react-native-image": "3.0.
|
|
85
|
+
"@onekeyfe/react-native-image": "3.0.114",
|
|
86
86
|
"react": "*",
|
|
87
87
|
"react-native": "*",
|
|
88
88
|
"react-native-nitro-modules": "0.37.0"
|