alpha0010/react-native-pdf-viewer

Black bars on IOS with <PdfView> component

sean-yeoh opened this issue · 2 comments

Hi @alpha0010, thanks for the library.

I'm currently getting weird black bars when using <PdfView> component on IOS. It works fine on Android. Is there a way to fix this?
image

React Native version: 0.63

Could you provide a pdf file the results in this behavior?

Hi @alpha0010 , I fixed it by adding a view with style { backgroundColor: 'transparent', borderColor: 'white', borderWidth: 8, position: 'absolute' } with width and height of the pdfview and it seems to work ok. It's just a list of pdf thumbnails so it's not really noticeable.

Thanks!