@onekeyfe/react-native-pager-view 3.0.118 → 3.0.119
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/src/main/java/com/reactnativepagerview/CollapsiblePagerViewManager.kt +42 -0
- package/ios/RNCCollapsiblePagerViewComponentView.mm +1886 -64
- package/lib/module/CollapsiblePagerView.js +83 -6
- package/lib/module/CollapsiblePagerViewNativeComponent.ts +23 -0
- package/lib/typescript/src/CollapsiblePagerView.d.ts +67 -2
- package/lib/typescript/src/CollapsiblePagerViewNativeComponent.d.ts +22 -1
- package/package.json +1 -1
- package/src/CollapsiblePagerView.tsx +258 -13
- package/src/CollapsiblePagerViewNativeComponent.ts +23 -0
|
@@ -151,6 +151,12 @@ class CollapsiblePagerViewManager : ViewGroupManager<CollapsiblePagerHost>(),
|
|
|
151
151
|
// OneKey patch: CollapsiblePagerHost always coordinates nested pagers on Android.
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
// The smooth shared-header ownership is implemented on iOS first.
|
|
155
|
+
override fun setNativeSmoothHeaderScrollEnabled(
|
|
156
|
+
view: CollapsiblePagerHost?,
|
|
157
|
+
value: Boolean,
|
|
158
|
+
) = Unit
|
|
159
|
+
|
|
154
160
|
// OneKey patch: round Yoga header dimensions to the nearest physical pixel.
|
|
155
161
|
@ReactProp(name = "headerHeight", defaultInt = 0)
|
|
156
162
|
override fun setHeaderHeight(view: CollapsiblePagerHost?, value: Int) {
|
|
@@ -173,6 +179,42 @@ class CollapsiblePagerViewManager : ViewGroupManager<CollapsiblePagerHost>(),
|
|
|
173
179
|
view?.retainedPages = value ?: "[]"
|
|
174
180
|
}
|
|
175
181
|
|
|
182
|
+
// The optional native tab bar is implemented on iOS first. These no-op
|
|
183
|
+
// setters preserve the shared Fabric contract without changing Android UI.
|
|
184
|
+
override fun setNativeTabBarItems(view: CollapsiblePagerHost?, value: String?) = Unit
|
|
185
|
+
|
|
186
|
+
override fun setNativeTabBarHeight(view: CollapsiblePagerHost?, value: Double) = Unit
|
|
187
|
+
|
|
188
|
+
override fun setNativeTabBarContentPaddingHorizontal(
|
|
189
|
+
view: CollapsiblePagerHost?,
|
|
190
|
+
value: Double,
|
|
191
|
+
) = Unit
|
|
192
|
+
|
|
193
|
+
override fun setNativeTabBarItemSpacing(view: CollapsiblePagerHost?, value: Double) = Unit
|
|
194
|
+
|
|
195
|
+
override fun setNativeTabBarFontSize(view: CollapsiblePagerHost?, value: Double) = Unit
|
|
196
|
+
|
|
197
|
+
override fun setNativeTabBarFontFamily(view: CollapsiblePagerHost?, value: String?) = Unit
|
|
198
|
+
|
|
199
|
+
override fun setNativeTabBarBackgroundColor(view: CollapsiblePagerHost?, value: Int?) = Unit
|
|
200
|
+
|
|
201
|
+
override fun setNativeTabBarActiveTextColor(view: CollapsiblePagerHost?, value: Int?) = Unit
|
|
202
|
+
|
|
203
|
+
override fun setNativeTabBarInactiveTextColor(view: CollapsiblePagerHost?, value: Int?) = Unit
|
|
204
|
+
|
|
205
|
+
override fun setNativeTabBarIndicatorColor(view: CollapsiblePagerHost?, value: Int?) = Unit
|
|
206
|
+
|
|
207
|
+
override fun setNativeTabBarIndicatorHeight(view: CollapsiblePagerHost?, value: Double) = Unit
|
|
208
|
+
|
|
209
|
+
override fun setNativeTabBarIndicatorBottom(view: CollapsiblePagerHost?, value: Double) = Unit
|
|
210
|
+
|
|
211
|
+
override fun setNativeSubHeaderConfig(view: CollapsiblePagerHost?, value: String?) = Unit
|
|
212
|
+
|
|
213
|
+
override fun setNativeSubHeaderSelectedBackgroundColor(
|
|
214
|
+
view: CollapsiblePagerHost?,
|
|
215
|
+
value: Int?,
|
|
216
|
+
) = Unit
|
|
217
|
+
|
|
176
218
|
private fun parseStringArray(value: String?): List<String> {
|
|
177
219
|
if (value.isNullOrEmpty()) return emptyList()
|
|
178
220
|
return runCatching {
|