react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

PDF View Full Screen

Open kyagie opened this issue 2 years ago • 2 comments

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? Simulator Screen Shot - iPhone 13 - 2022-08-08 at 14 40 52

Show us the code you are using?

kyagie avatar Aug 08 '22 11:08 kyagie

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',
  },

kylefoo avatar Sep 01 '22 06:09 kylefoo

maybe someone can tell you how to stretch the white area to the full height? image my code image

ajlee4 avatar Sep 01 '22 13:09 ajlee4