@onekeyfe/react-native-native-list 3.0.113 → 3.0.115
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/android/build.gradle +1 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListRowView.kt +8 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +378 -88
- package/ios/NativeListCell.swift +2 -0
- package/ios/RNCNativeListView.swift +186 -35
- package/lib/module/web/NativeListWebEngine.js +104 -46
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +11 -2
- package/package.json +4 -2
- package/src/web/NativeListWebEngine.ts +190 -89
package/android/build.gradle
CHANGED
|
@@ -101,5 +101,6 @@ dependencies {
|
|
|
101
101
|
implementation "androidx.recyclerview:recyclerview:1.4.0"
|
|
102
102
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
|
103
103
|
implementation project(":react-native-nitro-modules")
|
|
104
|
+
implementation project(":onekeyfe_react-native-native-logger")
|
|
104
105
|
implementation project(":onekeyfe_react-native-image")
|
|
105
106
|
}
|
|
@@ -2961,9 +2961,15 @@ internal class NativeListRowView(
|
|
|
2961
2961
|
}
|
|
2962
2962
|
val visibleSources = sources.take(leadingImages.size)
|
|
2963
2963
|
val tokenPair = kind == "token" && visibleSources.size > 1
|
|
2964
|
-
|
|
2965
|
-
|
|
2964
|
+
val hasAccountSelectorBadge =
|
|
2965
|
+
kind == "account" &&
|
|
2966
|
+
(tag as? NativeListItem)?.json?.optString("presentation") == "accountSelector" &&
|
|
2967
|
+
(visual.optJSONArray("overlays")?.length() ?: 0) > 0
|
|
2968
|
+
if (tokenPair || hasAccountSelectorBadge) {
|
|
2969
|
+
// Network badges intentionally extend past the avatar frame.
|
|
2966
2970
|
clipChildren = false
|
|
2971
|
+
}
|
|
2972
|
+
if (tokenPair) {
|
|
2967
2973
|
leadingOverlayBackground.visibility = VISIBLE
|
|
2968
2974
|
leadingOverlayBackground.background = roundedFill(visualBackdropColor, 10f)
|
|
2969
2975
|
leadingOverlayBackground.layoutParams = FrameLayout.LayoutParams(
|