Skip to content

page prop not being respected #13

@harveyappleton

Description

@harveyappleton

I used the page prop on react-native-pdf to render specific pages from the pdf as follows:

<Pdf
                  source={{ uri: pdfUrl, cache: false }}
                  page={index + 1}
                  singlePage
                  enablePaging={false}
                  scrollEnabled={false}
                  scale={1}
                  minScale={1}
                  maxScale={1}
                  showsHorizontalScrollIndicator={false}
                  showsVerticalScrollIndicator={false}
                  enableAnnotationRendering={false}
                  enableDoubleTapZoom={false}
                  style={{ height: 135, width: isMobile ? 90 : 180, zIndex: 0 }}
                />

However the page prop doesn't seem to work any more?
I noticed that you can use the ref approach and call .setPage on that, but it was easier when we could pass page prop into it (particularly when dealing with arrays of pdf pages).

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