@onekeyfe/react-native-native-list 6.7.0-alpha.362 → 6.7.0-alpha.363
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.
|
@@ -1939,7 +1939,10 @@ class NativeListView(
|
|
|
1939
1939
|
|
|
1940
1940
|
private fun attachSectionIndexToList() {
|
|
1941
1941
|
if (sectionIndexView.parent === contentContainer) return
|
|
1942
|
-
(sectionIndexView.parent as? ViewGroup)?.
|
|
1942
|
+
(sectionIndexView.parent as? ViewGroup)?.let { previous ->
|
|
1943
|
+
previous.removeView(sectionIndexView)
|
|
1944
|
+
previous.endViewTransition(sectionIndexView)
|
|
1945
|
+
}
|
|
1943
1946
|
sectionIndexView.translationX = 0f
|
|
1944
1947
|
contentContainer.addView(
|
|
1945
1948
|
sectionIndexView,
|
|
@@ -1975,7 +1978,10 @@ class NativeListView(
|
|
|
1975
1978
|
topMargin = (windowHost.height - railHeight) / 2
|
|
1976
1979
|
}
|
|
1977
1980
|
if (sectionIndexView.parent !== windowHost) {
|
|
1978
|
-
(sectionIndexView.parent as? ViewGroup)?.
|
|
1981
|
+
(sectionIndexView.parent as? ViewGroup)?.let { previous ->
|
|
1982
|
+
previous.removeView(sectionIndexView)
|
|
1983
|
+
previous.endViewTransition(sectionIndexView)
|
|
1984
|
+
}
|
|
1979
1985
|
windowHost.addView(sectionIndexView, layoutParams)
|
|
1980
1986
|
sectionIndexView.bringToFront()
|
|
1981
1987
|
} else if (!sectionIndexView.hasSameWindowLayout(layoutParams)) {
|
package/docs/SPEC.md
CHANGED
|
@@ -229,6 +229,16 @@ Existing geometry/typography differences are recorded in
|
|
|
229
229
|
them. iOS uses UICollectionView, Android RecyclerView, and Web a windowed DOM
|
|
230
230
|
engine. See [DESIGN.md](DESIGN.md) for their current ownership boundaries.
|
|
231
231
|
|
|
232
|
+
### Android section-index attachment
|
|
233
|
+
|
|
234
|
+
When `sectionIndex.centeredInWindow` is enabled, the Android index rail moves
|
|
235
|
+
between the list container and the window host as list visibility and attachment
|
|
236
|
+
change. Before adding that same rail to its new parent, the previous parent MUST
|
|
237
|
+
finish any pending view transition for it. Hiding the list returns the rail to
|
|
238
|
+
the list container; detaching still uses the existing posted return so that a
|
|
239
|
+
window traversal is not interrupted. Re-showing or reattaching MUST retain one
|
|
240
|
+
rail instance with one current parent.
|
|
241
|
+
|
|
232
242
|
### Font resource ownership and runtime configuration
|
|
233
243
|
|
|
234
244
|
Status: implemented; JavaScript regression tests, Android compilation/JVM tests
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-list",
|
|
3
|
-
"version": "6.7.0-alpha.
|
|
3
|
+
"version": "6.7.0-alpha.363",
|
|
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",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"typescript": "^5.9.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@onekeyfe/react-native-image": "6.7.0-alpha.
|
|
90
|
-
"@onekeyfe/react-native-native-logger": "6.7.0-alpha.
|
|
89
|
+
"@onekeyfe/react-native-image": "6.7.0-alpha.363",
|
|
90
|
+
"@onekeyfe/react-native-native-logger": "6.7.0-alpha.363",
|
|
91
91
|
"react": "*",
|
|
92
92
|
"react-native": "*",
|
|
93
93
|
"react-native-nitro-modules": "0.37.0"
|