@onekeyfe/react-native-native-list 6.7.0-24 → 6.7.0-26

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.
@@ -138,7 +138,7 @@ internal class NativeListMediaTileRowView(context: ThemedReactContext, fonts: Na
138
138
  val state = item.json.optString("imageState")
139
139
  errorIcon.visibility = if (state == "error") VISIBLE else GONE
140
140
  errorIcon.iconName = "ImageSquareWavesOutline"
141
- errorIcon.tintColor = parseNativeListColor("#00000044")
141
+ errorIcon.tintColor = tint("disabledText", "#8C8C8C")
142
142
  errorIcon.useSourceScale = sourceScale
143
143
  errorIcon.layoutParams = FrameLayout.LayoutParams(dp(24), dp(24), Gravity.CENTER)
144
144
  val media = item.json.optJSONObject("media")
package/docs/SPEC.md CHANGED
@@ -71,6 +71,16 @@ prevention; there is no automatic fitting or shrinking pass.
71
71
 
72
72
  ## Public API and defaults
73
73
 
74
+ ### Media failure placeholder — Implemented
75
+
76
+ Native media-tile failures use the current theme's `disabledText` color for the
77
+ existing local `ImageSquareWavesOutline` icon, including explicit `imageState:
78
+ 'error'` and exhausted media probes. A theme rebind updates that tint. Image
79
+ content and SVG decoding remain owned by OneKeyImage; no per-cell WebView or
80
+ fallback network source is added.
81
+ Full-wallet dark/light placeholder acceptance remains a runtime check; source
82
+ completion does not establish that visual result.
83
+
74
84
  ### Recipient identity and inline warning rows
75
85
 
76
86
  Status: implemented in local source for the Select Address and Swap selectors;
@@ -126,7 +126,7 @@ final class NativeListMediaTileCell: NativeListRendererCell {
126
126
  let placeholder = theme?.string("strongBackground", default: "#0000000F") ?? "#0000000F"
127
127
  errorIcon.isHidden = state != "error"
128
128
  errorIcon.bindIcon("ImageSquareWavesOutline")
129
- errorIcon.tintColor = UIColor(nativeListHex: "#00000044", fallback: .lightGray)
129
+ errorIcon.tintColor = nativeListColor(theme, "disabledText", "#8C8C8C")
130
130
  let media = item.data.dictionary("media")
131
131
  if state != "empty", state != "error", let source = media?.dictionary("source") ?? item.data.dictionary("image") {
132
132
  // Legacy source-backed media had a transparent container. Clear only a fill this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-native-list",
3
- "version": "6.7.0-24",
3
+ "version": "6.7.0-26",
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",