react-native-pdf
react-native-pdf copied to clipboard
PDF View Full Screen
React Native Version - 0.69.2 react-native-pdf - 6.6.2
What platform does your issue occur on? (android/ios/both) both
Describe your issue as precisely as possible : PDF View does not cover the entire screen. Can we have the option to show the file over its entire width & height
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?
Should just wrap a container around the pdf component, following works for me
pdfContainer: {
flex: 1,
height: '100%',
flexDirection: 'column',
display: 'flex',
},
pdf: {
flex: 1,
width: '100%',
height: '100%',
maxHeight: windowHeight,
flexDirection: 'column',
display: 'flex',
overflow: 'scroll',
},
maybe someone can tell you how to stretch the white area to the full height?
my code