wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.58k stars 540 forks source link

Page not fill fit width devices on android. #719

Open phucph1998 opened 1 year ago

phucph1998 commented 1 year ago

What react-native version are you using? 0.64.0 What react-native-pdf version are you using? 6.4.0 What platform does your issue occur on? (android/ios/both) android Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue You try with file file_example.pdf

  page 1,3 not show fit screen width
  page 2 normal

  1 picture other show normal

2) Interesting logs

Join a screenshot or video of the problem on the simulator or device? 1678078535139 1678078535151 1678078535114 Show us the code you are using? <Pdf minScale={1} maxScale={view ? 3 : 1} source={{ uri: base64PDF }} onLoadComplete={(numberOfPages, filePath, { width, height }) => { console.log(number of pages: ${numberOfPages}); console.log(width: ${width}); console.log(height: ${height}); setNumberOfPages(numberOfPages) setWidth(width) setHeight(height) }} onPageChanged={(page, numberOfPages) => { console.log(current page: ${page}); setCurrentPage(page) }} onScaleChanged={(valueScale) => { console.log(scale: ${valueScale}); }} enablePaging horizontal \ style={styles.pdf} />

BraveEvidence commented 1 year ago

This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o

BraveEvidence commented 1 year ago

This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o

anhnguyen123 commented 1 year ago

Can you make a friend zalo (0968999328) with me, I'm also in VN and I'm doing this.

CodeGradientsProjects commented 1 year ago

Hi, Did you manage to find the resolve for this issue ?