Skip to content

PAM Native 1.39.3

Choose a tag to compare

@DavidWilliamBalbino DavidWilliamBalbino released this 14 Oct 23:14
· 659 commits to main since this release

PAM Native 1.39.3 adds React Native pull to refresh directly on scroll views and lists, a native page-change event for pagers and carousels, RN-parity memory trimming, and zero-height empty virtual-list cells. It also includes the IME, focus, stacking and sheet-keyboard fixes prepared after 1.39.2.

Pull to refresh. Set :refreshing, on:refresh, tintColor, refreshColors, progressBackgroundColor, progressViewOffset, refreshIndicatorSize and refreshEnabled directly on ScrollView, VirtualizedList, FlatList or SectionList. You can also use the fluent refreshing() and onRefresh() methods. PAM wraps the scrollable in a native RefreshControl host automatically. Android now uses SwipeRefreshLayout (new dependency androidx.swiperefreshlayout:1.1.0) and iOS uses UIRefreshControl. A pull starts only at the top and still works on empty or short content. Horizontal gestures never start a pull, and the controlled refreshing value always wins. See docs/pull-to-refresh.md.

Page change. on:pageChange / onPageChange() (PageChangeEvent: page, previousPage) fires once when the current page changes during the drag. It is never sent per frame.

Memory. Android onTrimMemory empties caches only on RUNNING_CRITICAL/COMPLETE. UI_HIDDEN/BACKGROUND halve them. iOS halves the media memory cache on entering background and still empties it on memory warnings.

Layout. A mounted VirtualizedList cell with empty or hidden content measures 0. Only unmounted cells use the row estimate.

Protocol additions are append-only: EventKind 77 PageChange, PropKey 528 OnPageChange and 529 RefreshEnabled.

Validation on candidate 79f51e19:

  • 230 Rust tests (142 engine, 75 CLI, 13 protocol); fmt and clippy are clean.
  • Full PHP SDK suite, including new refresh-host and page-change contracts, plus protocol parity.
  • 285 Android JVM tests.
  • 307 Android instrumented tests on API 36: 0 failures, 6 skipped. They include 6 new pull-to-refresh cases and one mid-drag page-change case.
  • Exact-candidate native and native-ui community first-run gates passed on API 36: pam init, pam dev, launch, clean logcat and a PNG capture.
  • Linux CLI, Android renderer, PHP SDK archives and the plugin AAR pass deterministic rebuilds and package budgets.

Known limits:

  • PamKeyboardDismissInstrumentedTest.explicitBackKeepsImeClosedWithRetainedHeightAvoidingInput fails on an API 31 emulator. It fails identically at the pre-change base 31314653, so it is pre-existing and API 31 specific. It passes on API 36 both at the base and at this candidate.
  • API 26 was not rerun.
  • The iOS code (UIRefreshControl host, page tracker, memory-cost order) and its XCTest sources are included. Xcode/iOS execution was unavailable on Linux.
  • The Zé Chat stickers check (tall sheet with keyboard, T4) still needs a retest on the app APK built with this release.