Skip to content

Crashes on scroll with enablePaging #25

@harveyappleton

Description

@harveyappleton

When I scroll with enablePaging enabled:

  1. Scroll bar position is not correct
  2. The pages don't always scroll sequentially
  3. If you scroll far enough past the last page, then pause, and scroll again, the app crashes with error: NSInternalInconsistencyException: No view controller managing visible view <UIView: 0x134829c00; frame = (0 0; 424 568.333); autoresize = W+H; layer = <CALayer: 0x130d36a30>>
 <Pdf
  ref={previewPdfRef}
  onLoadComplete={(pages) => setTotalPages(pages)}
  onPageChanged={(page) => setCurrentPage(page - 1)}
  onPageSingleTap={(page) => onSelectPage(page - 1)}
  source={{ uri: pdfUrl, cache: false }}
  minScale={0.8}
  scrollEnabled
  enablePaging
  enableDoubleTapZoom
  showsHorizontalScrollIndicator
  showsVerticalScrollIndicator
  enableAnnotationRendering={false}
  style={{ flex: 1 }}
/>

Video attached, and example PDF attached.
(The 'select page' is my own component rendering over the top of the pdf scroller).

Seems to have occured in this changeset since v4.2.1

sample-15-page.pdf

ScreenRecording_02-24-2026.12-20-07.pm_1.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions