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).
I used the
pageprop onreact-native-pdfto render specific pages from the pdf as follows:However the page prop doesn't seem to work any more?
I noticed that you can use the ref approach and call
.setPageon that, but it was easier when we could passpageprop into it (particularly when dealing with arrays of pdf pages).