@onekeyfe/react-native-native-list 3.0.153 → 3.0.154
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.
|
@@ -3417,6 +3417,7 @@ internal class NativeListRowView(
|
|
|
3417
3417
|
val fallbackIcon = if (index == 0) fallbackIconData else null
|
|
3418
3418
|
val expectedEpoch = bindingEpoch
|
|
3419
3419
|
bindImage(source, image, boundKey ?: "", index, variant,
|
|
3420
|
+
round = shape == "circle",
|
|
3420
3421
|
onLoad = if (!ownsSourceFallback) null else ({
|
|
3421
3422
|
if (bindingEpoch == expectedEpoch) {
|
|
3422
3423
|
sourceFallbackKey?.let(NativeListSourceFallbackState::forget)
|
|
@@ -4226,6 +4227,7 @@ internal class NativeListRowView(
|
|
|
4226
4227
|
token: String,
|
|
4227
4228
|
slot: Int,
|
|
4228
4229
|
variant: String,
|
|
4230
|
+
round: Boolean = false,
|
|
4229
4231
|
onLoad: (() -> Unit)? = null,
|
|
4230
4232
|
onError: (() -> Unit)? = null,
|
|
4231
4233
|
hideUntilLoaded: Boolean = false,
|
|
@@ -4263,6 +4265,7 @@ internal class NativeListRowView(
|
|
|
4263
4265
|
autoplay = source.optBoolean("autoplay", false),
|
|
4264
4266
|
recyclingKey = recyclingKey,
|
|
4265
4267
|
optimizeTos = retryAttempt == 0 && source.optBoolean("optimizeTos", true),
|
|
4268
|
+
round = round,
|
|
4266
4269
|
overscan = source.optDouble("overscan", 1.1),
|
|
4267
4270
|
loadingStrategy = source.optString("loadingStrategy", "none"),
|
|
4268
4271
|
placeholderColor = imagePlaceholderColor,
|
|
@@ -4279,7 +4282,18 @@ internal class NativeListRowView(
|
|
|
4279
4282
|
val retry = Runnable {
|
|
4280
4283
|
if (bindingEpoch == expectedEpoch) {
|
|
4281
4284
|
selectorImageRetries.remove(imageView)
|
|
4282
|
-
bindImage(
|
|
4285
|
+
bindImage(
|
|
4286
|
+
source = source,
|
|
4287
|
+
imageView = imageView,
|
|
4288
|
+
token = token,
|
|
4289
|
+
slot = slot,
|
|
4290
|
+
variant = variant,
|
|
4291
|
+
round = round,
|
|
4292
|
+
onLoad = onLoad,
|
|
4293
|
+
onError = onError,
|
|
4294
|
+
hideUntilLoaded = hideUntilLoaded,
|
|
4295
|
+
retryAttempt = retryAttempt + 1,
|
|
4296
|
+
)
|
|
4283
4297
|
}
|
|
4284
4298
|
}
|
|
4285
4299
|
selectorImageRetries[imageView] = retry
|
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.154",
|
|
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.154",
|
|
87
|
+
"@onekeyfe/react-native-native-logger": "3.0.154",
|
|
88
88
|
"react": "*",
|
|
89
89
|
"react-native": "*",
|
|
90
90
|
"react-native-nitro-modules": "0.37.0"
|