Skip to content

Error: pdf uri not working on Android #188

Open
@aleffarias

Description

@aleffarias

Issue Description

I'm trying to render the pdf through the uri but I get the following error. This happens for any valid uri

Steps to Reproduce / Code Snippets

My code:

        <PdfReader
          source={{
            uri: 'https://www.thecampusqdl.com/uploads/files/pdf_sample_2.pdf',
          }}
          withPinchZoom
          webviewStyle={[
            {
              marginTop: 80,
            },
            Platform.OS === 'android' && {
              backgroundColor: theme.colors.primary,
            },
          ]}
          style={Platform.OS === 'ios' && { marginTop: 30 }}
          withScroll
        />

error:
Captura de Tela 2023-03-27 às 13 52 01

Expected Results

render pdf

Additional Information

  • Nodejs version: [16.16]
  • React version: [18.0.0]
  • React Native version: [0.69.6]
  • rn-pdf-reader-js version: [4.1.1]
  • Platform(s) (iOS, Android, or both?): [Android]
  • TypeScript version: [4.3.5]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions