react-native-pdf
react-native-pdf copied to clipboard
Page not fill fit width devices on android.
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 :
-
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
-
Interesting
logs
Join a screenshot or video of the problem on the simulator or device?
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}
/>
This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o
This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o
Can you make a friend zalo (0968999328) with me, I'm also in VN and I'm doing this.
Hi, Did you manage to find the resolve for this issue ?