wonday / react-native-pdf

A <Pdf /> component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to read online insecure PDF file

phillipcmittmann opened this issue · comments

What react-native version are you using?
0.73.1

What react-native-pdf version are you using?
6.7.4

What platform does your issue occur on? (android/ios/both)
Both

Simulator Screenshot - iPhone 8 - 2024-01-17 at 16 39 33
Simulator Screenshot - iPhone 8 - 2024-01-17 at 16 39 36

Show us the code you are using?

<Pdf
source={{ uri: http://online.osul.com.br/edicoesanteriores/20240117/jornal-o-sul.pdf }}
enablePaging={true}
horizontal={true}
style={{ backgroundColor: 'white', flex: 2 }}
fitPolicy={0}
trustAllCerts={true}
/>

For me adding trustAllCerts={false} fixed that error

For me adding trustAllCerts={false} fixed that error

Adding trustAllCerts={false} didnt solved the issue.

We added certificates for those endpoints, resolving the problem on my end.

Closing without a solution.