@onekeyfe/react-native-native-list 3.0.157-alpha.255 → 3.0.157-alpha.258
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.
|
@@ -592,6 +592,8 @@ class NativeListView(
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
private fun updateRefreshIndicatorOffset(offset: Int) {
|
|
595
|
+
// Let an ancestor render above its shared header without guessing caller offsets.
|
|
596
|
+
refreshLayout.setTag(R.id.onekey_native_scroll_coordinator_refresh_inset, offset)
|
|
595
597
|
if (refreshIndicatorOffsetPx == offset) return
|
|
596
598
|
refreshIndicatorOffsetPx = offset
|
|
597
599
|
val refreshing = refreshLayout.isRefreshing
|
package/docs/SPEC.md
CHANGED
|
@@ -526,6 +526,20 @@ The container does not emit a second haptic for the release fallback. The fallba
|
|
|
526
526
|
inactive unless pull-to-refresh is enabled; no product-specific threshold is
|
|
527
527
|
hardcoded into the module.
|
|
528
528
|
|
|
529
|
+
## Android refresh foreground geometry
|
|
530
|
+
|
|
531
|
+
Status: implemented; NFT/History Home placement verified on Android on 2026-09-28.
|
|
532
|
+
The refresh container publishes its actual coordinator-added indicator inset in
|
|
533
|
+
physical pixels under the native View tag
|
|
534
|
+
`onekey_native_scroll_coordinator_refresh_inset`. Zero means no added inset;
|
|
535
|
+
the value MUST match the offset actually applied by the existing controller,
|
|
536
|
+
including all ancestor padding contributions. A coordinating outer Pager can
|
|
537
|
+
subtract this metadata once when drawing the native indicator above shared
|
|
538
|
+
headers. This metadata does not change refresh trigger distance, callback,
|
|
539
|
+
refreshing state, ordinary-list placement or row templates. It introduces no
|
|
540
|
+
JavaScript API or dependency on Pager classes. The value follows changes to the
|
|
541
|
+
applied inset and remains valid while that inset is retained across detach.
|
|
542
|
+
|
|
529
543
|
## Native rich activity presentation
|
|
530
544
|
|
|
531
545
|
Status: Source implemented; native runtime acceptance pending. Optional `amounts`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-list",
|
|
3
|
-
"version": "3.0.157-alpha.
|
|
3
|
+
"version": "3.0.157-alpha.258",
|
|
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",
|