-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
-
How did you link to the library (autolinking, manual, rn link, cocoapods)?
autolinking -
What version of React Native?
0.80 -
What version of the library?
Haven't used this library. -
iOS/Android version?
iOS 15.0, Android 7.0 -
New or Old architecture?
Old, try to use New Architecture but was blocked by some dependencies. -
Did the problem happen after updating React Native?
N/A -
Are you using the library for the first time?
Yes -
It's a bug? Provide a link to a minimal reproduction case.
No, it's a feature request -
Context
I used to integrate thereact-native-pdf, but its dependencies are conflict with some other libraries in my react-native app. I foundreact-native-pdf-renderer, which is a good solution, but this library doesn't support show specific page when click a button to switch the pages. I expect to add a propertypagelike blow
<PdfRendererView
page={this.state.page}
style={{backgroundColor: 'red'}}
source="file:///path/to/local/file.pdf"
distanceBetweenPages={16}
maxZoom={5}
onPageChange={(current, total) => {
console.log(current, total);
}}
/>
I see the android side use PdfRenderer which has method openPage, and iOS PDFKit also supports switch page.
So is it possible to add a property like page then we can pass a page number to it to navigate to a specific page? Thank you.